summaryrefslogtreecommitdiff
path: root/t/t1450-fsck.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-01-07 21:27:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-01-07 21:27:56 (GMT)
commit3c84ac86fc896c108b789b8eb26b169cc0e8088a (patch)
tree647250e896ab9c29d8c4b3867aae4a5ee7d15822 /t/t1450-fsck.sh
parent8e36a6d5752ced382ecd46a5f2cd94276f79451c (diff)
parent282616c72d1d08a77ca4fe1186cb708c38408d87 (diff)
downloadgit-3c84ac86fc896c108b789b8eb26b169cc0e8088a.zip
git-3c84ac86fc896c108b789b8eb26b169cc0e8088a.tar.gz
git-3c84ac86fc896c108b789b8eb26b169cc0e8088a.tar.bz2
Merge branch 'maint-2.0' into maint-2.1
* maint-2.0: is_hfs_dotgit: loosen over-eager match of \u{..47}
Diffstat (limited to 't/t1450-fsck.sh')
-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 426f753..6475f10 100755
--- a/t/t1450-fsck.sh
+++ b/t/t1450-fsck.sh
@@ -307,6 +307,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).