Skip to contentSkip to conversation

t1305: fix include by absolute path test on Windows

PATCH New Johannes Sixt 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t1305: fix include by absolute path test on Windows

From: Johannes Sixt <[email protected]>

Git on Windows does not understand bash's /c/dir/... POSIXy paths, so that the test fails. Ensure that the config file mentions the Windows style absolute path to the file to be included.

---
Feel free to squash this into the patch that adds the test.

 t/t1305-config-include.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
t/t1305-config-include.sh +1 -1
index f3e03a0..4b1cbaa 100755
@@ -5,7 +5,7 @@ test_description='test config file include directives'
 
 test_expect_success 'include file by absolute path' '
 	echo "[test]one = 1" >one &&
-	echo "[include]path = \"$PWD/one\"" >.gitconfig &&
+	echo "[include]path = \"$(pwd)/one\"" >.gitconfig &&
 	echo 1 >expect &&
 	git config test.one >actual &&
 	test_cmp expect actual
Signature · 1 line
1.7.9.1264.g9b7e2