Skip to content

Commit 03e011b

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 1429175 commit 03e011b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

t/t9902-completion.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,7 @@ invalid_variable_name='${foo.bar}'
126126

127127
actual="$TRASH_DIRECTORY/actual"
128128

129-
if test_have_prereq MINGW
130-
then
131-
ROOT="$(pwd -W)"
132-
else
133-
ROOT="$(pwd)"
134-
fi
129+
ROOT="$(pwd)"
135130

136131
test_expect_success 'setup for __git_find_repo_path/__gitdir tests' '
137132
mkdir -p subdir/subsubdir &&

0 commit comments

Comments
 (0)