Documentation: AsciiDoc spells em-dash as double-dashes, not triple
[gitweb.git] / t / t1450-fsck.sh
index d00b70f99deffc6a4009fcea2ef387aade68d3e6..793aee9f0bbd535ddef38249a088d102b15b6479 100755 (executable)
@@ -345,6 +345,21 @@ 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
+       )
+'
+
 # create a static test repo which is broken by omitting
 # one particular object ($1, which is looked up via rev-parse
 # in the new repository).