зеркало из https://github.com/microsoft/git.git
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 <johannes.schindelin@gmx.de>
This commit is contained in:
Родитель
6ab9ab3873
Коммит
8eb7fac51a
|
@ -126,12 +126,7 @@ invalid_variable_name='${foo.bar}'
|
||||||
|
|
||||||
actual="$TRASH_DIRECTORY/actual"
|
actual="$TRASH_DIRECTORY/actual"
|
||||||
|
|
||||||
if test_have_prereq MINGW
|
|
||||||
then
|
|
||||||
ROOT="$(pwd -W)"
|
|
||||||
else
|
|
||||||
ROOT="$(pwd)"
|
ROOT="$(pwd)"
|
||||||
fi
|
|
||||||
|
|
||||||
test_expect_success 'setup for __git_find_repo_path/__gitdir tests' '
|
test_expect_success 'setup for __git_find_repo_path/__gitdir tests' '
|
||||||
mkdir -p subdir/subsubdir &&
|
mkdir -p subdir/subsubdir &&
|
||||||
|
|
Загрузка…
Ссылка в новой задаче