From db75811cfaec90fa8a114f46c84d408f5e6ca7c9 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 5 Feb 2009 17:15:31 +0100 Subject: [PATCH] MinGW tests: override 'pwd', too With MinGW based Git, we must not use the POSIXified version of paths. So we need to use 'pwd -W' instead of 'pwd' without options. Signed-off-by: Johannes Schindelin --- t/t5505-remote.sh | 3 --- t/test-lib.sh | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh index b4dc0d2fbe..1f59960d90 100755 --- a/t/t5505-remote.sh +++ b/t/t5505-remote.sh @@ -107,9 +107,6 @@ test_expect_success 'remove remote' ' ) ' -case $(uname -s) in -*MINGW*) pwd() { builtin pwd -W; } ;; -esac cat > test/expect << EOF * remote origin URL: $(pwd)/one diff --git a/t/test-lib.sh b/t/test-lib.sh index cce3636c1b..7a5f77b765 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -536,5 +536,8 @@ case $(uname -s) in find () { /usr/bin/find "$@" } + pwd() { + builtin pwd -W + } ;; esac