X-Recipient: archive-cygwin@delorie.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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=HaP
	AHopQgyFKzmPUzrBuORYOJfBlr7j9oK3Ef1gzncE3db0n1DNezJxV1sm3oxUk+ct
	2t7F9MMxxFPl0lZypFy7PR2ED6ihohKlR6duYond4dRRuWtDmaA2ywNIY94sE6Ut
	bo8KiyJlQUzq+wH3s4LPOEWAHRLTIyzpTdUUNM8g=
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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=L9TPugMjX
	b603J9+YypcZawLQF4=; b=aHA6S3hCxQN/Ke/2UpVJgAIA0HYxefLPp8aU809hX
	DZpN+KyvjvBR2lECQYt3fYaH/Hq4Z8zMsfLl2saE5brFyYKimAWiscZNcqt3SVlo
	nBLk+TWsQicvF1NHMMYRETBvLNNa41WxuQIa1xWWTvzrqw0rYs7Ur52BSbyYl4ZH
	Zc=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=interestingly, Roman, roman, hey
X-HELO: mail-wm0-f51.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:to:from:subject:message-id:date:user-agent         :mime-version:content-transfer-encoding;        bh=Yk/ZhV1z7VIvm6X8ZkB56Bkn4B4AbPM3yfveO1oY28M=;        b=NZUuEESuIbEGs0jQyRxyzSs60mAw9rYnSCizLF3FYJkyxcAsb0S8s3cpsNB2yHcMo4         rot+4QIVqKCytTqCHuaShnQHsY+v0qIh1OO+7roGWirphi5mLklbN7sFf+PlRdAHo/Qo         PZVx362S3+N4KcW0C2i71nJGA0KlTOMRjlD2/CdzHdqZPilyS3e3iVkYZVm+JL42jBoN         Wflo0xPAQviiXKRxiQRaY2w0o2/qMbC7Q+gE3E1+gg7kJNhoN4cEWfA+UtQpjw/AWGMA         mIwWQMhCvPfInE+JBQ8wOQ4Smh37w5Gsj/cDueiEYtkyww99qXW4XNhUtk0UZn1esBZ1         FKgw==
X-Gm-Message-State: AOPr4FUERMGyA7Wu0txa/bGHywu42jC9IqGhvae/rx2g5ZqsaVRFgdCdAbrHqbB7cWP+Sw==
X-Received: by 10.194.235.39 with SMTP id uj7mr4871613wjc.78.1461098033203;        Tue, 19 Apr 2016 13:33:53 -0700 (PDT)
To: cygwin@cygwin.com
From: silverwind <silv3rwind@gmail.com>
Subject: git and absolute Windows-style paths
Message-ID: <57169662.9060503@gmail.com>
Date: Tue, 19 Apr 2016 22:34:42 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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.

Interestingly, a command like "git add" still sets an 0 exit code 
despite the apparent failure. Could it be that some effort to correct 
the path is attempted, but it failed?

$ mkdir /cygdrive/c/test
$ cd /cygdrive/c/test
$ git init
$ touch file
$ git add C:\\test\\file         <-- this fails despite exit code 0
$ git status                     <-- shows no changes
$ git add /cygdrive/c/test/file  <-- this works
$ git status                     <-- correctly shows "new file"

Regards
Roman

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

