Skip to content

Commit 1432f3b

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 9b21147 commit 1432f3b

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
@@ -134,12 +134,7 @@ invalid_variable_name='${foo.bar}'
134134

135135
actual="$TRASH_DIRECTORY/actual"
136136

137-
if test_have_prereq MINGW
138-
then
139-
ROOT="$(pwd -W)"
140-
else
141-
ROOT="$(pwd)"
142-
fi
137+
ROOT="$(pwd)"
143138

144139
test_expect_success 'setup for __git_find_repo_path/__gitdir tests' '
145140
mkdir -p subdir/subsubdir &&

0 commit comments

Comments
 (0)