From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120721 invoked by alias); 20 Apr 2016 09:00:26 -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 120694 invoked by uid 89); 20 Apr 2016 09:00:25 -0000 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 Received: from mail-wm0-f53.google.com (HELO mail-wm0-f53.google.com) (74.125.82.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 20 Apr 2016 09:00:12 +0000 Received: by mail-wm0-f53.google.com with SMTP id n3so70050849wmn.0 for ; Wed, 20 Apr 2016 02:00:12 -0700 (PDT) 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) Received: from dinwoodie.org ([2001:ba8:0:1c0::9:1]) by smtp.gmail.com with ESMTPSA id i194sm2822250wmf.6.2016.04.20.02.00.08 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 20 Apr 2016 02:00:08 -0700 (PDT) Date: Wed, 20 Apr 2016 10:28:00 -0000 From: Adam Dinwoodie To: cygwin@cygwin.com Subject: Re: git and absolute Windows-style paths Message-ID: <20160420090006.GG2345@dinwoodie.org> References: <57169662.9060503@gmail.com> <892b8f62-266a-da20-c8f4-4b2b82a66c39@gmail.com> <5716A9FA.6020407@cornell.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5716A9FA.6020407@cornell.edu> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00490.txt.bz2 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