Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Wed, 7 Jan 2015 21:28:29 +0000 (13:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Jan 2015 21:28:29 +0000 (13:28 -0800)
* maint:
is_hfs_dotgit: loosen over-eager match of \u{..47}

1  2 
t/t1450-fsck.sh
diff --combined t/t1450-fsck.sh
index 1f04b8aa3ff925f469ffa60ce47f9d5659b9acaa,793aee9f0bbd535ddef38249a088d102b15b6479..cfb32b62420dc162e79aaea29a36f7d78f3353f5
@@@ -229,12 -229,8 +229,12 @@@ test_expect_success 'tag with incorrec
        echo $tag >.git/refs/tags/wrong &&
        test_when_finished "git update-ref -d refs/tags/wrong" &&
        git fsck --tags 2>out &&
 -      grep "invalid .tag. name" out &&
 -      grep "expected .tagger. line" out
 +
 +      cat >expect <<-EOF &&
 +      warning in tag $tag: invalid '\''tag'\'' name: wrong name format
 +      warning in tag $tag: invalid format - expected '\''tagger'\'' line
 +      EOF
 +      test_cmp expect out
  '
  
  test_expect_success 'tag with bad tagger' '
@@@ -349,6 -345,21 +349,21 @@@ dot-backslash-case .\\\\.GIT\\\\fooba
  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).