From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74025 invoked by alias); 4 Dec 2015 00:07:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 74015 invoked by uid 89); 4 Dec 2015 00:07:22 -0000 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 Received: from resqmta-po-02v.sys.comcast.net (HELO resqmta-po-02v.sys.comcast.net) (96.114.154.161) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 04 Dec 2015 00:07:21 +0000 Received: from resomta-po-08v.sys.comcast.net ([96.114.154.232]) by resqmta-po-02v.sys.comcast.net with comcast id pC7D1r004516pyw01C7KKi; Fri, 04 Dec 2015 00:07:19 +0000 Received: from resmail-po-054v.sys.comcast.net ([162.150.176.64]) by resomta-po-08v.sys.comcast.net with comcast id pC7K1r00M1PkcJi01C7KWs; Fri, 04 Dec 2015 00:07:19 +0000 Date: Fri, 04 Dec 2015 00:07:00 -0000 From: Matt Smith To: cygwin@cygwin.com Message-ID: <45790306.1954012.1449187639543.JavaMail.zimbra@comcast.net> In-Reply-To: <20151203204221.GK14466@dinwoodie.org> References: <1032375163.9174650.1448234447549.JavaMail.zimbra@comcast.net> <1271139068.9180259.1448235027708.JavaMail.zimbra@comcast.net> <20151203204221.GK14466@dinwoodie.org> Subject: Re: Git issue. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00041.txt.bz2 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" To: cygwin@cygwin.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