www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/10/25/14:16:55

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4EA6FCF4.7090908@redhat.com>
Date: Tue, 25 Oct 2011 12:16:20 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Symbilic links support
References: <CAO1Zr+of4pSyg2+8u+hZx-UqkidOdneUCWOau7yWR-YN+q30Ww AT mail DOT gmail DOT com>
In-Reply-To: <CAO1Zr+of4pSyg2+8u+hZx-UqkidOdneUCWOau7yWR-YN+q30Ww@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 10/25/2011 11:48 AM, Alexey Kuznetsov wrote:
> By default git checkout files created as symbolic links on linux
> system as symbolic links. Under windows it does not work.
>
> I expect on cygwin machines after git checkout I will get normal links
> can be readed as 'ls -al' command. But they actually appears as normal
> files.

Does adding this to your ~/.gitconfig help?

[core]
	filemode = true

If so, we need to push back on the upstream git folks to tell them that 
their defaults on cygwin are wrong, for any repository that wants to use 
symlinks.  Upstream git is playing nasty tricks of trying to go behind 
cygwin's back, and use native windows functions instead of stat() for 
speed, but as a result of those games, they break symlink support.

I guess I should look into packaging the latest upstream git soon, 
anyways, and as part of that packaging, I'll see if I can tweak the 
default to avoid the brain-dead upstream "optimization", at least for 
out-of-the-box configuration, if that does indeed fix your problem.

-- 
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019