summaryrefslogtreecommitdiff
path: root/ls-files.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-15 09:10:13 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-15 09:10:13 (GMT)
commit6becd7da8786555fbd2aeeb9669d37dc810f2658 (patch)
tree4e3dda0a63147cf221326bb5a12cdd1a402403dd /ls-files.c
parente8a1a11d4e0036a4205dbed533c135b51cd87218 (diff)
downloadgit-6becd7da8786555fbd2aeeb9669d37dc810f2658.zip
git-6becd7da8786555fbd2aeeb9669d37dc810f2658.tar.gz
git-6becd7da8786555fbd2aeeb9669d37dc810f2658.tar.bz2
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>
Diffstat (limited to 'ls-files.c')
-rw-r--r--ls-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ls-files.c b/ls-files.c
index a716e5f..df93cf2 100644
--- a/ls-files.c
+++ b/ls-files.c
@@ -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;
}