diff options
author | Johannes Sixt <j6t@kdbg.org> | 2016-10-18 22:06:07 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-25 15:58:22 -0700 |
commit | 77b63ac31e5e1a67a34cfb7567ca1673a596be71 (patch) | |
tree | 706e2d5bc27ea3ab367c6e411c36972ef33091d3 /builtin | |
parent | submodule: ignore trailing slash in relative url (diff) | |
download | tgif-77b63ac31e5e1a67a34cfb7567ca1673a596be71.tar.xz |
t0060: sidestep surprising path mangling results on Windows
When an MSYS program (such as the bash that drives the test suite)
invokes git on Windows, absolute Unix style paths are transformed into
Windows native absolute paths (drive letter form). However, this
transformation also includes some simplifications that are not just
straight-forward textual substitutions:
- When the path ends in "/.", then the dot is stripped, but not the
directory separator.
- When the path contains "..", then it is optimized away if possible,
e.g., "/c/dir/foo/../bar" becomes "c:/dir/bar".
These additional transformations violate the assumptions of some
submodule path tests. We can avoid them when the input is already a
Windows native path, because then MSYS leaves the path unmolested.
Convert the uses of $PWD to $(pwd); the latter returns a native Windows
path.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions