Skip to content

Commit fcccf36

Browse files
dschovdye
authored andcommitted
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 7b0c52c commit fcccf36

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

130130
actual="$TRASH_DIRECTORY/actual"
131131

132-
if test_have_prereq MINGW
133-
then
134-
ROOT="$(pwd -W)"
135-
else
136-
ROOT="$(pwd)"
137-
fi
132+
ROOT="$(pwd)"
138133

139134
test_expect_success 'setup for __git_find_repo_path/__gitdir tests' '
140135
mkdir -p subdir/subsubdir &&

0 commit comments

Comments
 (0)