Code

ls-files: fix pathspec display on error
[git.git] / builtin / commit.c
index e1af9b19f0be71484ae9341762dc2bf89cabb70c..9679a99f9902583094ddc1e31d44d119203482a9 100644 (file)
@@ -272,7 +272,7 @@ static int list_paths(struct string_list *list, const char *with_tree,
                        item->util = item; /* better a valid pointer than a fake one */
        }
 
-       return report_path_error(m, pattern, prefix ? strlen(prefix) : 0);
+       return report_path_error(m, pattern, prefix);
 }
 
 static void add_remove_files(struct string_list *list)