summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fsck.c2
-rwxr-xr-xt/t1450-fsck.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/fsck.c b/fsck.c
index a7233c8d0b..ade1b88596 100644
--- a/fsck.c
+++ b/fsck.c
@@ -170,7 +170,7 @@ static int fsck_tree(struct tree *item, int strict, fsck_error error_func)
has_empty_name |= !*name;
has_dot |= !strcmp(name, ".");
has_dotdot |= !strcmp(name, "..");
- has_dotgit |= !strcmp(name, ".git");
+ has_dotgit |= !strcasecmp(name, ".git");
has_zero_pad |= *(char *)desc.buffer == '0';
update_tree_entry(&desc);
diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh
index 292e21b9b7..a441a408e3 100755
--- a/t/t1450-fsck.sh
+++ b/t/t1450-fsck.sh
@@ -277,6 +277,7 @@ done <<-\EOF
dot .
dotdot ..
dotgit .git
+dotgit-case .GIT
EOF
test_done