git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] t1305: fix include by absolute path test on Windows
@ 2012-02-17  8:31 Johannes Sixt
  0 siblings, 0 replies; only message in thread
From: Johannes Sixt @ 2012-02-17  8:31 UTC (permalink / raw)
  To: Jeff King; +Cc: Junio C Hamano, Git Mailing List

From: Johannes Sixt <j6t@kdbg.org>

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.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
 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(-)

diff --git a/t/t1305-config-include.sh b/t/t1305-config-include.sh
index f3e03a0..4b1cbaa 100755
--- a/t/t1305-config-include.sh
+++ b/t/t1305-config-include.sh
@@ -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
-- 
1.7.9.1264.g9b7e2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-17  8:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-17  8:31 [PATCH] t1305: fix include by absolute path test on Windows Johannes Sixt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).