Skip to content

Commit 8e3b66b

Browse files
committed
tests (mingw): remove Bash-specific pwd option
The -W option is only understood by MSYS2 Bash's pwd command. We already make sure to override `pwd` by `builtin pwd -W` for MINGW, so let's not double the effort here. This will also help when switching the shell to another one (such as BusyBox' ash) whose pwd does *not* understand the -W option. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent e033676 commit 8e3b66b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

t/t9902-completion.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,7 @@ invalid_variable_name='${foo.bar}'
140140

141141
actual="$TRASH_DIRECTORY/actual"
142142

143-
if test_have_prereq MINGW
144-
then
145-
ROOT="$(pwd -W)"
146-
else
147-
ROOT="$(pwd)"
148-
fi
143+
ROOT="$(pwd)"
149144

150145
test_expect_success 'setup for __git_find_repo_path/__gitdir tests' '
151146
mkdir -p subdir/subsubdir &&

0 commit comments

Comments
 (0)