We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79ed43c + b738396 commit 75676c8Copy full SHA for 75676c8
1 file changed
t/t1308-config-set.sh
@@ -233,11 +233,19 @@ cmdline_config="'foo.bar=from-cmdline'"
233
test_expect_success 'iteration shows correct origins' '
234
echo "[foo]bar = from-repo" >.git/config &&
235
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 &&
244
cat >expect <<-EOF &&
245
key=foo.bar
246
value=from-home
247
origin=file
- name=$HOME/.gitconfig
248
+ name=$HOME_GITCONFIG
249
scope=global
250
251
0 commit comments