This is the mail archive of the
cygwin
mailing list for the Cygwin project.
git and absolute Windows-style paths
- From: silverwind <silv3rwind at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 19 Apr 2016 22:34:42 +0200
- Subject: git and absolute Windows-style paths
- Authentication-results: sourceware.org; auth=none
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