summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-01-07 13:27:19 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-01-07 13:27:19 -0800
commit282616c72d1d08a77ca4fe1186cb708c38408d87 (patch)
tree2e8e4242f7c7891adbad096ac9d47350358b0ef1 /t
parentGit 2.0.5 (diff)
parentMerge branch 'maint-1.8.5' into maint-1.9 (diff)
downloadtgif-282616c72d1d08a77ca4fe1186cb708c38408d87.tar.xz
Merge branch 'maint-1.9' into maint-2.0
* maint-1.9: is_hfs_dotgit: loosen over-eager match of \u{..47}
Diffstat (limited to 't')
-rwxr-xr-xt/t1450-fsck.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh
index 983568a4b9..a5589e2da7 100755
--- a/t/t1450-fsck.sh
+++ b/t/t1450-fsck.sh
@@ -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