Skip to content

Commit

Permalink
ls-files --error-unmatch pathspec error reporting fix.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Feb 15, 2006
1 parent e8a1a11 commit 6becd7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ls-files.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ int main(int argc, const char **argv)
if (ps_matched[num])
continue;
error("pathspec '%s' did not match any.",
pathspec[num] + prefix_len);
pathspec[num] + prefix_offset);
}
return errors ? 1 : 0;
}
Expand Down

0 comments on commit 6becd7d

Please sign in to comment.