summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-18 19:48:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-07-18 19:48:09 (GMT)
commit33400c0e96460f36708789a6a3c8eeb7cbc8f0cc (patch)
tree353ea68a6b56abfa0ccc9590a23adaf25dbf3acb /git-compat-util.h
parentf3da2b79be9565779e4f76dc5812c68e156afdf0 (diff)
parent496f2569892273a142889193350ceb95b6019011 (diff)
downloadgit-33400c0e96460f36708789a6a3c8eeb7cbc8f0cc.zip
git-33400c0e96460f36708789a6a3c8eeb7cbc8f0cc.tar.gz
git-33400c0e96460f36708789a6a3c8eeb7cbc8f0cc.tar.bz2
Merge branch 'tb/push-to-cygwin-unc-path'
On Cygwin, similar to Windows, "git push //server/share/repository" ought to mean a repository on a network share that can be accessed locally, but this did not work correctly due to stripping the double slashes at the beginning. This may need to be heavily tested before it gets unleashed to the wild, as the change is at a fairly low-level code and would affect not just the code to decide if the push destination is local. There may be unexpected fallouts in the path normalization. * tb/push-to-cygwin-unc-path: cygwin: allow pushing to UNC paths
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 047172d..db9c22d 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -189,6 +189,9 @@
#include <sys/sysctl.h>
#endif
+#if defined(__CYGWIN__)
+#include "compat/cygwin.h"
+#endif
#if defined(__MINGW32__)
/* pull in Windows compatibility stuff */
#include "compat/mingw.h"