public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* git and absolute Windows-style paths
@ 2016-04-19 21:00 silverwind
  2016-04-19 21:58 ` Marco Atzeri
  2016-04-20  0:49 ` Bill Smith
  0 siblings, 2 replies; 18+ messages in thread
From: silverwind @ 2016-04-19 21:00 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-04-21 16:35 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19 21:00 git and absolute Windows-style paths silverwind
2016-04-19 21:58 ` Marco Atzeri
2016-04-19 22:28   ` Ken Brown
2016-04-20 10:28     ` Adam Dinwoodie
2016-04-20  0:49 ` Bill Smith
2016-04-20 15:52   ` silverwind
2016-04-20 16:06     ` Eliot Moss
2016-04-20 16:15       ` Brian Clifton
2016-04-20 18:18         ` Ernie Rael
2016-04-20 20:39         ` Eliot Moss
2016-04-20 21:17           ` Adam Dinwoodie
2016-04-21 19:50             ` Andrey Repin
2016-04-20 23:40           ` Ernie Rael
2016-04-21  0:14             ` Eliot Moss
2016-04-21 15:19               ` Ray Donnelly
2016-04-21 16:01                 ` Ray Donnelly
2016-04-20 16:46       ` silverwind
2016-04-20 16:56         ` Adam Dinwoodie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).