]> git.ipfire.org Git - thirdparty/git.git/commit - t/t0060-path-utils.sh
cygwin: allow pushing to UNC paths
authorTorsten Bögershausen <tboegi@web.de>
Mon, 3 Jul 2017 14:41:37 +0000 (16:41 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Jul 2017 21:01:03 +0000 (14:01 -0700)
commit496f2569892273a142889193350ceb95b6019011
treef071c3b1494dba4510bd63c410b906db791703b3
parent8c8e978f5719c6a58fb998742207bf907f963143
cygwin: allow pushing to UNC paths

 cygwin can use an UNC path like //server/share/repo

 $ cd //server/share/dir
 $ mkdir test
 $ cd test
 $ git init --bare

 However, when we try to push from a local Git repository to this repo,
 there is a problem: Git converts the leading "//" into a single "/".

 As cygwin handles an UNC path so well, Git can support them better:

 - Introduce cygwin_offset_1st_component() which keeps the leading "//",
   similar to what Git for Windows does.

 - Move CYGWIN out of the POSIX in the tests for path normalization in t0060

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/cygwin.c [new file with mode: 0644]
compat/cygwin.h [new file with mode: 0644]
config.mak.uname
git-compat-util.h
t/t0060-path-utils.sh