diff options
author | Johannes Sixt <j6t@kdbg.org> | 2016-11-11 18:31:48 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-11-11 10:54:46 -0800 |
commit | 71dd50472d6be8ff91ab0dcfa2413daeaba14baa (patch) | |
tree | 35abe97b98396d42b1f3cc71b8efc81763aa3005 /t/t7104-reset.sh | |
parent | 0538b84027a8aba7e8b805e3ec8fceb3990023e5 (diff) | |
download | git-js/pwd-var-vs-pwd-cmd-fix.tar.gz |
t0021, t5615: use $PWD instead of $(pwd) in PATH-like shell variablesjs/pwd-var-vs-pwd-cmd-fix
We have to use $PWD instead of $(pwd) because on Windows the latter
would add a C: style path to bash's Unix-style $PATH variable, which
becomes confused by the colon after the drive letter. ($PWD is a
Unix-style path.)
In the case of GIT_ALTERNATE_OBJECT_DIRECTORIES, bash on Windows
assembles a Unix-style path list with the colon as separators. It
converts the value to a Windows-style path list with the semicolon as
path separator when it forwards the variable to git.exe. The same
confusion happens when bash's original value is contaminated with
Windows style paths.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7104-reset.sh')
0 files changed, 0 insertions, 0 deletions