Code

Merge branch 'np/delta' into next
[git.git] / ls-files.c
index 52bbfdc805aecaa9c463adbb4ef94d1af9c8511f..90b289f03d987c6c90214fc12d00c30b4e28bb27 100644 (file)
@@ -777,7 +777,8 @@ 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);
+                       errors++;
                }
                return errors ? 1 : 0;
        }