diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-01-07 13:28:29 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-01-07 13:28:29 -0800 |
commit | ee6e4c70f1b0126edc7fbff4600bbfb74444e6ba (patch) | |
tree | 570193b16645fcc698354cbedac493cec4e8151f /t/t1450-fsck.sh | |
parent | 40d2f3863598937f93fdff7673bbcc989452b075 (diff) | |
parent | 7ba46269a04de20032bd2dd614be6290cd65caab (diff) | |
download | git-ee6e4c70f1b0126edc7fbff4600bbfb74444e6ba.tar.gz |
Merge branch 'maint'
* maint:
is_hfs_dotgit: loosen over-eager match of \u{..47}
Diffstat (limited to 't/t1450-fsck.sh')
-rwxr-xr-x | t/t1450-fsck.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh index 1f04b8aa3f..cfb32b6242 100755 --- a/t/t1450-fsck.sh +++ b/t/t1450-fsck.sh @@ -349,6 +349,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). |