Skip to content

Commit f683756

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 be30202 commit f683756

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

140140
actual="$TRASH_DIRECTORY/actual"
141141

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

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

0 commit comments

Comments
 (0)