summaryrefslogtreecommitdiff
path: root/t/t5812-proto-disable-http.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j6t@kdbg.org>2016-12-21 22:51:35 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-12-22 10:28:15 -0800
commite9a379c352b02ca560c58a56aa723994aa42666f (patch)
tree03da3113aac766a4bdede4ea66eef4ea1f688aed /t/t5812-proto-disable-http.sh
parentreal_path: have callers use real_pathdup and strbuf_realpath (diff)
downloadtgif-e9a379c352b02ca560c58a56aa723994aa42666f.tar.xz
real_path: canonicalize directory separators in root parts
When an absolute path is resolved, resolution begins at the first path component after the root part. The root part is just copied verbatim, because it must not be inspected for symbolic links. For POSIX paths, this is just the initial slash, but on Windows, the root part has the forms c:\ or \\server\share. We do want to canonicalize the back-slashes in the root part because these parts are compared to the result of getcwd(), which does return a fully canonicalized path. Factor out a helper that splits off the root part, and have it canonicalize the copied part. This change was prompted because t1504-ceiling-dirs.sh caught a breakage in GIT_CEILING_DIRECTORIES handling on Windows. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Acked-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5812-proto-disable-http.sh')
0 files changed, 0 insertions, 0 deletions