]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fsck.c
Merge branch 'bc/sha-256-part-2'
[thirdparty/git.git] / fsck.c
diff --git a/fsck.c b/fsck.c
index 8bb3ecf282563e3ae318f27b89bd9a707bef3850..f82e2fe9e302fed2e9ebf44c0323628cb94576f0 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -598,7 +598,7 @@ static int verify_ordered(unsigned mode1, const char *name1,
 
        /*
         * There can be non-consecutive duplicates due to the implicitly
-        * add slash, e.g.:
+        * added slash, e.g.:
         *
         *   foo
         *   foo.bar
@@ -620,7 +620,7 @@ static int verify_ordered(unsigned mode1, const char *name1,
                        if (!f_name)
                                break;
                        if (!skip_prefix(name2, f_name, &p))
-                               break;
+                               continue;
                        if (!*p)
                                return TREE_HAS_DUPS;
                        if (is_less_than_slash(*p)) {