delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/03/19:07:38

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:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; q=
dns; s=default; b=BSb261TGwydLnE93qf7gtros8Ze/5WW5fVBDeGnQmToHjc
raTcsvvNooMfVdApnK+m1EwVdb80qF0RGZ10961H0lSY+MOJQZyQ7G1jKTbw6bBE
nyLR40WBLF0qDQp70CoOlyfUHaU6scKKJ46JjXXBwYIWhrEWQNXDx4/U2Hvyc=
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:date:from:to:message-id:in-reply-to:references
:subject:mime-version:content-type:content-transfer-encoding; s=
default; bh=niQ19X1ZJeisRqnInpoYNVOWo70=; b=NiqaOBK7tSHAktQWduD0
HTsYi6SQMn0q+vwI1a+W4Q5JgxQfagoruToahaWyhM3oLykEA/Qnr999ZfpEBVZv
wnrwNJhen0ypGK3usL2550BeDyLpxg+So1OF7mqdvoorKIxF3V0M+jdJ8VhFcrxI
PafaBT0AjvhPdGZwLZ9avvY=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.9 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: resqmta-po-02v.sys.comcast.net
Date: Fri, 4 Dec 2015 00:07:19 +0000 (UTC)
From: Matt Smith <boulderfans AT comcast DOT net>
To: cygwin AT cygwin DOT com
Message-ID: <45790306.1954012.1449187639543.JavaMail.zimbra@comcast.net>
In-Reply-To: <20151203204221.GK14466@dinwoodie.org>
References: <1032375163 DOT 9174650 DOT 1448234447549 DOT JavaMail DOT zimbra AT comcast DOT net> <1271139068 DOT 9180259 DOT 1448235027708 DOT JavaMail DOT zimbra AT comcast DOT net> <20151203204221 DOT GK14466 AT dinwoodie DOT org>
Subject: Re: Git issue.
MIME-Version: 1.0
X-IsSubscribed: yes

Ok.  I wasn't sure as the behavior changed.  It worked in 1.9.5 and then stopped working when I moved to 2.5.x.  I'm not sure if it matters to you, but doing some bisecting it looks like the behavior changed between 2.2.0 and 2.3.0:

-------------------------
[/cygdrive/d/projects]
$ git --version
git version 2.2.0.dirty

[/cygdrive/d/projects]
$ git --git-dir=d:/projects/git-git/.git config alias.foo ls-files

[/cygdrive/d/projects]
$

-------------------------
[/cygdrive/d/projects]
$ git --version
git version 2.3.0.dirty

[/cygdrive/d/projects]
$ git --git-dir=d:/projects/git-git/.git config alias.foo ls-files
error: could not lock config file d:/projects/git-git/.git/config: No such file or directory

----------------------------

We'll adjust accordingly.

Thanks!

-Matt

----- Original Message ----- 
From: "Adam Dinwoodie" <adam AT dinwoodie DOT org> 
To: cygwin AT cygwin DOT com 
Sent: Thursday, December 3, 2015 1:42:21 PM 
Subject: Re: Git issue. 

On Sun, Nov 22, 2015 at 11:30:27PM +0000, boulderfans wrote: 
> [/cygdrive/d/projects] 
> $ git --git-dir=d:/projects/git-git/.git config alias.foo ls-files 
> error: Unable to open tempfile: /cygdrive/d/projects/d:/projects/git-git/.git/config.lock 
> error: could not lock config file d:/projects/git-git/.git/config: No such file or directory 
> 
> The problem is that the code that is checking the --git-dir option 
> doesn't work properly if you use a DOS drive:/path specification. 

Hi Matt, 

Cygwin applications, including applications you've compiled yourself 
using the Cygwin toolchain, normally expect Cygwin's Linux-like paths, 
e.g. /cygdrive/d/projects/git-git. Attempting to use Windows paths 
simply isn't meant to work. 

You can convert from a Windows path to the equivalent Cygwin path using 
the cygpath utility, e.g.: 

git --git-dir="$(cygpath 'd:/projects/git-git/.git')" config alias.foo ls-files 

Adam 

-- 
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 



--
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