Merge branch 'tb/precompose-autodetect-fix'
authorJunio C Hamano <gitster@pobox.com>
Tue, 17 Sep 2013 18:39:59 +0000 (11:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Sep 2013 18:39:59 +0000 (11:39 -0700)
On MacOS X, we detected if the filesystem needs the "pre-composed
unicode strings" workaround, but did not automatically enable it.
Now we do.

* tb/precompose-autodetect-fix:
Set core.precomposeunicode to true on e.g. HFS+

1  2 
t/t7400-submodule-basic.sh
index 4192fe0ec6025979caea01885925c1786a4fcf63,f0f8cde43423369cb2a2c8f82c4dcb2c8f2abc70..10f89bd0ce3656a1dee841d19582e5d1bfc9736a
@@@ -18,16 -18,6 +18,16 @@@ test_expect_success 'setup - initial co
        git branch initial
  '
  
 +test_expect_success 'configuration parsing' '
 +      test_when_finished "rm -f .gitmodules" &&
 +      cat >.gitmodules <<-\EOF &&
 +      [submodule "s"]
 +              path
 +              ignore
 +      EOF
 +      test_must_fail git status
 +'
 +
  test_expect_success 'setup - repository in init subdirectory' '
        mkdir init &&
        (
@@@ -783,11 -773,13 +783,11 @@@ test_expect_success 'submodule add --na
                        test_cmp expect .git
                ) &&
                echo "repo" >expect &&
 -              git config -f .gitmodules submodule.repo.path >actual &&
 -              test_cmp expect actual &&
 +              test_must_fail git config -f .gitmodules submodule.repo.path &&
                git config -f .gitmodules submodule.repo_new.path >actual &&
                test_cmp expect actual&&
                echo "$submodurl/repo" >expect &&
 -              git config -f .gitmodules submodule.repo.url >actual &&
 -              test_cmp expect actual &&
 +              test_must_fail git config -f .gitmodules submodule.repo.url &&
                echo "$submodurl/bare.git" >expect &&
                git config -f .gitmodules submodule.repo_new.url >actual &&
                test_cmp expect actual &&
@@@ -807,8 -799,12 +807,8 @@@ test_expect_success 'submodule add wit
                git rm repo &&
                test_must_fail git submodule add -q --name repo_new "$submodurl/repo.git" repo &&
                test ! -d repo &&
 -              echo "repo" >expect &&
 -              git config -f .gitmodules submodule.repo_new.path >actual &&
 -              test_cmp expect actual&&
 -              echo "$submodurl/bare.git" >expect &&
 -              git config -f .gitmodules submodule.repo_new.url >actual &&
 -              test_cmp expect actual &&
 +              test_must_fail git config -f .gitmodules submodule.repo_new.path &&
 +              test_must_fail git config -f .gitmodules submodule.repo_new.url &&
                echo "$submodurl/bare.git" >expect &&
                git config submodule.repo_new.url >actual &&
                test_cmp expect actual &&
@@@ -962,7 -958,6 +962,6 @@@ test_expect_success 'submodule with UTF
                git add sub &&
                git commit -m "init sub"
        ) &&
-       test_config core.precomposeunicode true &&
        git submodule add ./"$svname" &&
        git submodule >&2 &&
        test -n "$(git submodule | grep "$svname")"