diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-06-09 03:06:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-09 03:06:29 +0200 |
commit | 7e75aeb290b5f0d858019359fee4e0132637c726 (patch) | |
tree | e69483b90bf8aed5adcf7c071b303b87657fd1ae /fsck.c | |
parent | Merge branch 'es/bugreport-shell' (diff) | |
parent | fsck: detect more in-tree d/f conflicts (diff) | |
download | git-7e75aeb290b5f0d858019359fee4e0132637c726.tar.xz git-7e75aeb290b5f0d858019359fee4e0132637c726.zip |
Merge branch 'rs/fsck-duplicate-names-in-trees'
The check in "git fsck" to ensure that the tree objects are sorted
still had corner cases it missed unsorted entries.
* rs/fsck-duplicate-names-in-trees:
fsck: detect more in-tree d/f conflicts
t1450: demonstrate undetected in-tree d/f conflict
t1450: increase test coverage of in-tree d/f detection
fsck: fix a typo in a comment
Diffstat (limited to 'fsck.c')
-rw-r--r-- | fsck.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) { |