From: Junio C Hamano Date: Tue, 4 Oct 2005 02:05:01 +0000 (-0700) Subject: On Cygwin, use symbolic ref, not a symbolic link, to express .git/HEAD X-Git-Tag: v0.99.9~200 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4514385edd913f6c10fa03c828effc5ba974369e;p=git.git On Cygwin, use symbolic ref, not a symbolic link, to express .git/HEAD H. Peter Anvin says that Samba "promotes" symlinks to hardlinks while Cygwin itself uses .lnk files to emulate symlinks. Avoid using symbolic link for .git/HEAD on Cygwin. This does not help the symlinks recorded in trees as user data, but at least we do not use them for our own bookkeeping. Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 133808c82..0d3c27793 100644 --- a/Makefile +++ b/Makefile @@ -183,6 +183,7 @@ ifeq ($(shell uname -o),Cygwin) NEEDS_LIBICONV = YesPlease NO_IPV6 = YesPlease X = .exe + PLATFORM_DEFINES += -DUSE_SYMLINK_HEAD=0 endif ifneq (,$(findstring arm,$(shell uname -m))) ARM_SHA1 = YesPlease