Merge branch 'maint-1.8.5' into maint-1.9
[gitweb.git] / t / t1450-fsck.sh
index 983568a4b9f81d95c5142b02a3760be3644b5bd8..a5589e2da7d59d2d303ca5a5b5eadc968c87f5c9 100755 (executable)
@@ -287,4 +287,19 @@ dot-backslash-case .\\\\.GIT\\\\foobar
 dotgit-case-backslash .git\\\\foobar
 EOF
 
+test_expect_success 'fsck allows .Ňit' '
+       (
+               git init not-dotgit &&
+               cd not-dotgit &&
+               echo content >file &&
+               git add file &&
+               git commit -m base &&
+               blob=$(git rev-parse :file) &&
+               printf "100644 blob $blob\t.\\305\\207it" >tree &&
+               tree=$(git mktree <tree) &&
+               git fsck 2>err &&
+               test_line_count = 0 err
+       )
+'
+
 test_done