delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/03/15:42:43

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:subject:message-id:references
:mime-version:content-type:in-reply-to; q=dns; s=default; b=SEKO
IJ2eZirXcXn3gRckkWWpaqh3szafBX31kEu4I4Jikp/k/ORnY2KSvh/HiCEHt7O0
PaftYZkbYA2e+OSZnpTf8Su2/3zyyeOrR9I0Ea8l6nocvX9E8P+bJ+UEh7yqEVHf
Uug3tdtrJBlcsT6xqDPQPBpyXXqH5hbe6zFUClk=
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:subject:message-id:references
:mime-version:content-type:in-reply-to; s=default; bh=fP+djTPn4D
qnaZHKeSkMVYSybgk=; b=po9rgYhXuB1yZH7GBxK16ZbJrVshY0E6/9OUakb1VY
S1pfuvnZZvlk85A+shLJPJI7Ip/ikcVSwfyQjBFvA3VRsCPGkrWde7cKYhTx6r9m
Rztmdj5Sm21bTlxgxrOSFh0/juDfUVWsFd5Q8dDZq/VlmQteaykl3JaIxcRvnbdU
8=
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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wm0-f43.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=ahvAUVWkq4K7BxzXMAmIx3K3HycVqaqLqDJn4QRXQ84=; b=CZuD2HQZJv8MK4ZB0/WOymgUGRRbc6FYBelrVz5TLu+Sx1G2TP8Wz362TiptWHdo1E 25RMRHWln6n6EQf+drUJ90ljkZoholtGrj42lZ/nZE6c3WQS8sSR5rqb0fYe5dUCASjQ p93VFOiCKD0qixzZZc4cxMLV3rGFLt1mjk/qcSPfTfkRjfnlfFZIUTnSwISCoIAKaDDs ZisggIykPMJqsjgJu1B6iJpSGhX5QV0mO66Z2t2yiY2ba+tCvSReH7R3tVTfPtmNBnCS X5Ww//6fSb2w67Xcg7DDPtL0vu/Zl8pBD0AhxI8q4AiSY3zfHUoqeFoqTVg7NH7+ZVPp iCnw==
X-Gm-Message-State: ALoCoQnnJVeTTptTryByynvjqIL3R89wr+ZJnQQ+b/Jss21SkuqpCO6qofhJTD7IJ7tLqsATl7c+
X-Received: by 10.28.156.83 with SMTP id f80mr702051wme.41.1449175343929; Thu, 03 Dec 2015 12:42:23 -0800 (PST)
Date: Thu, 3 Dec 2015 20:42:21 +0000
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Git issue.
Message-ID: <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>
MIME-Version: 1.0
In-Reply-To: <1271139068.9180259.1448235027708.JavaMail.zimbra@comcast.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes

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

- Raw text -


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