mirror of
https://github.com/git/git.git
synced 2026-03-13 02:13:24 +01:00
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 <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -536,5 +536,8 @@ case $(uname -s) in
|
||||
find () {
|
||||
/usr/bin/find "$@"
|
||||
}
|
||||
pwd() {
|
||||
builtin pwd -W
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user