X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=JsS9wnYKoGEjnjp0nHhq3IpP1Hb3XYWjaJ/U99C6HQm oWpk+jXdRtPmzv7iYEBJ3/jK+cSUad8EQjzsXwRZ5zqX04mY+MBTQ2U23HBm+ugr RdfmX63fuGgkF7VY/ZOZkIrTA1CbSWlAYLtt4TpXtbxfftRgbj1q5nwxADURnVjg = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=F4+5NXWhtDMo+wLMkYajXymRH+I=; b=oVd0X6+sI+/MYAF+5 qDtfWgao3xW9SiWt1h9Fr/gdUjsDI2Xc9T7h8ucCx4vdOLaUb51dz6VAchxqXVyk 5iITvTjVm0XBQIbH68Wz4M2OVjgYs1cf6o6MnS6mGVC9r8oRt+6G1E6QEExPG8tq DvKTY/vI166QbuoombixDJKFEk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rtits2.realtek.com X-SpamFilter-By: BOX Solutions SpamTrap 5.39 with qID s7F1uKe5011996, This message is accepted by code: ctloc85258 Message-ID: <53ED68C4.3040106@realsil.com.cn> Date: Fri, 15 Aug 2014 09:56:20 +0800 From: Robert Bu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Subject: Re: repo with CYGWIN=winsymlinks:nativestrict References: <53EC9FB9 DOT 8090100 AT realsil DOT com DOT cn> <20140814164431 DOT GA27917 AT dinwoodie DOT org> In-Reply-To: <20140814164431.GA27917@dinwoodie.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Thank you for your response. Adam Dinwoodie wrote on 2014/8/15 0:44: > On Thu, Aug 14, 2014 at 07:38:33PM +0800, Robert Bu wrote: >> If I set CYGWIN=winsymlinks:lnk, repo works. However, Windows native >> Git tool, such as TortoiseGit cannot read the symlink file. I think >> it treats the symlink file as a normal file and tries to parse the >> file format as Git specifies. > > I've never used native Windows Git tools, but if they work in a similar > way to Windows Subversion tools, they're expecting a "symlink" to be > something that doesn't act like a symlink in any way whatsoever. > > I suspect this is one of those areas where Cygwin and native-Windows > tools aren't going to play nicely without a lot of difficulty because of > the fundamental differences between *nix and Windows approaches. > > The only useful suggestion I have is to abandon Windows Git tools. If > you want GUIs you could try gitk and git-gui in Cygwin (you'll need to > install an X server to use these). Yes, I'ved used gitk as in Linux. It's not so user-friendly as TortoiseGit. > > You could also try suggesting the TortoiseGit folk handle the symlinks > created by Cygwin (of whatever flavour) as symlinks in the Git > repository, but even if they accept that as a feature request I'd guess > it'd be a while before it'd be available. So, I'm trying with winsymlinks:nativestrict. I expect Native Git tool can work with it, since it's 'native'. > >> I guess Windows native tool can handle the symlink if >> "CYGWIN=winsymlinks:nativestrict". >> However, if I set CYGWIN=winsymlinks:nativestrict, repo init fails with >> os.symlink(os.path.relpath(src, os.path.dirname(dst)), dst) >> OSError: [Errno 2] No such file or directory > > This seems odd, although the error here really doesn't say very much > about what's going on. I've no idea if this is being run in Cygwin > Python or Windows Python, and I have no idea of the directory structure > and symlink locations in the paths it's using. It must be Cygwin Python. I do not install any Windows Python. B.R. Robert. -- 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