Skip to content

Commit 75676c8

Browse files
committed
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
2 parents 79ed43c + b738396 commit 75676c8

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

t/t1308-config-set.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,19 @@ cmdline_config="'foo.bar=from-cmdline'"
233233
test_expect_success 'iteration shows correct origins' '
234234
echo "[foo]bar = from-repo" >.git/config &&
235235
echo "[foo]bar = from-home" >.gitconfig &&
236+
if test_have_prereq MINGW
237+
then
238+
# Use Windows path (i.e. *not* $HOME)
239+
HOME_GITCONFIG=$(pwd)/.gitconfig
240+
else
241+
# Do not get fooled by symbolic links, i.e. $HOME != $(pwd)
242+
HOME_GITCONFIG=$HOME/.gitconfig
243+
fi &&
236244
cat >expect <<-EOF &&
237245
key=foo.bar
238246
value=from-home
239247
origin=file
240-
name=$HOME/.gitconfig
248+
name=$HOME_GITCONFIG
241249
scope=global
242250
243251
key=foo.bar

0 commit comments

Comments
 (0)