delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/20/05:00:44

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=xw+l
H/QjjAVmH5NHrNsAAxZgogKlTOTs1261RwSeusF1Atcojw8zqjst9zu9BLbqVrEB
L78T06FnvE8W5n52vfVW0UeWQbdKm3GoycVPKk6qruNNI1MQdTePwqGvuicc3r4E
5F8o7+1mR66aRtzY4MwBqQ9KSbSEGCF06gLG7Nk=
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=NUt8fKy/nW
Ss3r19E3o82jpdfs8=; b=mc5nZYvnyfuVH68Ndvb9AmPSETSWXKRPSYCQTkpt1/
EsaMZ+BZW9ckPIcy7S62aOaG3pyPKq/yS4q278W1yBfE+o0tu33HM7wV+tRvawUd
m+KLzON9mhbqIjArFrFIezNkdsOms6jK1hHYkl5mKStZoiE/pZ+H0hzO5wYkGZHr
o=
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 spammy=experimentation, Hx-languages-length:1257, H*f:sk:5716A9F, H*MI:sk:5716A9F
X-HELO: mail-wm0-f53.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-disposition:in-reply-to:user-agent; bh=xXanRqK4YMQyCLUOHgZsPlKM/IiRWffaK+rp2uK81Jg=; b=j4yd/vM7etSqH0RIcvI/nMOSblmkpLPFzDyBNh0Pxw3DSafa1xxwehqYTa69f9D4gB oTnHzd2qK6UEF20ajGaytPIqXWGJxq8bfHcoFoTvob3aUH8GuzZy1VMsp61WfoC+QRPA 6z+Nixeusmq2lcaJpRWde7PxkyrcJvPWszjcvKNcoBOkXCvqAWl7/u6XJpaQWICe7DWY s2HddPd3XLoBY8I4PfsWz4GQtKCEM8jd2xdZPkM80tbc7kUOjgiBO3UeR58kD5hK9dAV Ymt3TjMbEuX4xqhDtOZ0LRWaaT3hPBEAGN3d8LGsHlnftDMx2m6l8IWR/o7FI4K6j/Tq q83A==
X-Gm-Message-State: AOPr4FVMPKYo5TLqmeXSeoGCSWvlYDUVGVkk4+MCHviNVFdhZE/DntGuq7RFdG+xn59wTw==
X-Received: by 10.28.47.208 with SMTP id v199mr5072720wmv.56.1461142809215; Wed, 20 Apr 2016 02:00:09 -0700 (PDT)
Date: Wed, 20 Apr 2016 10:00:06 +0100
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: git and absolute Windows-style paths
Message-ID: <20160420090006.GG2345@dinwoodie.org>
References: <57169662 DOT 9060503 AT gmail DOT com> <892b8f62-266a-da20-c8f4-4b2b82a66c39 AT gmail DOT com> <5716A9FA DOT 6020407 AT cornell DOT edu>
MIME-Version: 1.0
In-Reply-To: <5716A9FA.6020407@cornell.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-IsSubscribed: yes

On Tue, Apr 19, 2016 at 05:58:18PM -0400, Ken Brown wrote:
> On 4/19/2016 5:31 PM, Marco Atzeri wrote:
> >On 19/04/2016 22:34, silverwind wrote:
> >>Hey,
> >>
> >>I noticed that Cygwin's git does not seem to correctly process
> >>Windows-style paths in at least v2.7.4 and v2.8.1. It may have worked
> >>before, but I'm not totally certain.
> >
> >don't assume cygwin programs are able to process windows path.
> >Most don't. Use Posix paths
> 
> But I think the OP is correct in pointing out that git should have
> given an error, as it does when a Posix path points to a
> non-existent file:
> 
> $ git add foo
> fatal: pathspec 'foo' did not match any files

I wouldn't expect Windows-style paths to work, but I agree that I'd
expect them to error out rather than silently fail.  I can't immediately
see what's going wrong, so I'm going to report this upstream.

Some data points, from some quick experimentation:

- `git add 'c:\tmp\file'` silently fails to add `file` if it exists.
- `git add 'c:\tmp\file'` correctly errors out if `file` doesn't exist.
- `git add 'subdir\file'` (i.e. using relative paths with back-slashes)
  has the same behaviour.
- `git add 'c:/tmp/file'` also shows the same behaviour.

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