From 6becd7da8786555fbd2aeeb9669d37dc810f2658 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 15 Feb 2006 01:10:13 -0800 Subject: [PATCH] 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 --- ls-files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ls-files.c b/ls-files.c index a716e5fa..df93cf22 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; } -- 2.11.0