ls-files --error-unmatch pathspec error reporting fix.
Earlier patch mistakenly used prefix_len when it meant prefix_offset. The latter is to strip the leading directories when run from a subdirectory. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
e8a1a11d4e
commit
6becd7da87
@ -757,7 +757,7 @@ int main(int argc, const char **argv)
|
|||||||
if (ps_matched[num])
|
if (ps_matched[num])
|
||||||
continue;
|
continue;
|
||||||
error("pathspec '%s' did not match any.",
|
error("pathspec '%s' did not match any.",
|
||||||
pathspec[num] + prefix_len);
|
pathspec[num] + prefix_offset);
|
||||||
}
|
}
|
||||||
return errors ? 1 : 0;
|
return errors ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user