Skip to content

Commit

Permalink
tests (mingw): remove Bash-specific pwd option
Browse files Browse the repository at this point in the history
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 <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Sep 18, 2024
1 parent 68ff010 commit cfa1803
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions t/t9902-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,7 @@ invalid_variable_name='${foo.bar}'

actual="$TRASH_DIRECTORY/actual"

if test_have_prereq MINGW
then
ROOT="$(pwd -W)"
else
ROOT="$(pwd)"
fi
ROOT="$(pwd)"

test_expect_success 'setup for __git_find_repo_path/__gitdir tests' '
mkdir -p subdir/subsubdir &&
Expand Down

0 comments on commit cfa1803

Please sign in to comment.