X-Recipient: archive-cygwin@delorie.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@redhat.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@cygwin.com
Subject: Re: Symbilic links support
References: <CAO1Zr+of4pSyg2+8u+hZx-UqkidOdneUCWOau7yWR-YN+q30Ww@mail.gmail.com>
In-Reply-To: <CAO1Zr+of4pSyg2+8u+hZx-UqkidOdneUCWOau7yWR-YN+q30Ww@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@redhat.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

