You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests: prepend to PATH with $PATH_SEP, not a literal ":"
Several tests make a script in the current directory findable by
git-spawned helpers (a fake gpg, a fake editor, ...) by prepending $PWD
to PATH as `PATH="$PWD:$PATH"`. The literal ":" is the POSIX path-list
separator, which is what the MSYS2 Bash uses, but BusyBox' ash speaks to
Win32 directly and its PATH is ";"-separated. The hardcoded ":" then
glues $PWD onto the first real entry, so for instance t7510's
`gpg.program=fake-gpg` can no longer be found and the commit aborts with
"cannot spawn fake-gpg: No such file or directory".
test-lib already computes the correct separator in $PATH_SEP (";" when
the inherited PATH contains one, ":" otherwise); use it. This is a no-op
for the existing POSIX and MSYS2 callers and fixes the BusyBox runs.
Assisted-by: Opus 4.8
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
0 commit comments