From: Junio C Hamano Date: Thu, 14 Jul 2016 17:38:57 +0000 (-0700) Subject: Merge branch 'jk/upload-pack-hook' X-Git-Tag: v2.10.0-rc0~118 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/75676c8c8b6cbeec7ccb68d97c17db230d9f2659?ds=inline;hp=-c Merge branch 'jk/upload-pack-hook' A hot-fix to make a test working in mingw again. * jk/upload-pack-hook: mingw: fix regression in t1308-config-set --- 75676c8c8b6cbeec7ccb68d97c17db230d9f2659 diff --combined t/t1308-config-set.sh index a06e71ceed,9d0dd177c7..7655c94c28 --- a/t/t1308-config-set.sh +++ b/t/t1308-config-set.sh @@@ -197,14 -197,14 +197,14 @@@ test_expect_success 'proper error on er echo "[" >>.git/config && echo "fatal: bad config line 34 in file .git/config" >expect && test_expect_code 128 test-config get_value foo.bar 2>actual && - test_cmp expect actual + test_i18ncmp expect actual ' test_expect_success 'proper error on error in custom config files' ' echo "[" >>syntax-error && echo "fatal: bad config line 1 in file syntax-error" >expect && test_expect_code 128 test-config configset_get_value foo.bar syntax-error 2>actual && - test_cmp expect actual + test_i18ncmp expect actual ' test_expect_success 'check line errors for malformed values' ' @@@ -233,11 -233,19 +233,19 @@@ cmdline_config="'foo.bar=from-cmdline' test_expect_success 'iteration shows correct origins' ' echo "[foo]bar = from-repo" >.git/config && echo "[foo]bar = from-home" >.gitconfig && + if test_have_prereq MINGW + then + # Use Windows path (i.e. *not* $HOME) + HOME_GITCONFIG=$(pwd)/.gitconfig + else + # Do not get fooled by symbolic links, i.e. $HOME != $(pwd) + HOME_GITCONFIG=$HOME/.gitconfig + fi && cat >expect <<-EOF && key=foo.bar value=from-home origin=file - name=$HOME/.gitconfig + name=$HOME_GITCONFIG scope=global key=foo.bar