git and absolute Windows-style paths

silverwind silv3rwind@gmail.com
Tue Apr 19 21:00:00 GMT 2016


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



More information about the Cygwin mailing list