{"thread":{"id":"32111","subject":"Git does not understand absolute Win'dos' path","startedAt":"2012-11-14T09:12:09Z","lastAt":"2012-11-15T19:20:04Z","messageCount":3,"participants":["Martin Lichtin","Johannes Sixt","Ramsay Jones"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"203176","messageId":"1352884329.28981.YahooMailNeo@web162504.mail.bf1.yahoo.com","threadId":"32111","inReplyTo":null,"subject":"Git does not understand absolute Win'dos' path","fromName":"Martin Lichtin","fromEmail":"lichtin@yahoo.com","sentAt":"2012-11-14T09:12:09Z","receivedAt":"2012-11-14T09:12:09Z","isPatch":false,"sender":{"key":"lichtin@yahoo.com","avatar":null},"body":"Hi\n\nMaven's release plugin prepares a call Git like in this example:\n\ncmd.exe /X /C \"git commit --verbose -F C:\\cygwin\\tmp\\maven-scm-915771020.commit pom.xml\"\n\nGit doesn't seem to understand the -F argument and treats it like a relative path (relative to the repository root):\n\n$ cmd.exe /X /C \"git commit --verbose -F C:\\cygwin\\tmp\\commit pom.xml\"\nfatal: could not read log file 'mytestdir/C:\\cygwin\\tmp\\commit': No such file or directory\n"},{"id":"203178","messageId":"50A36844.3090000@viscovery.net","threadId":"32111","inReplyTo":"1352884329.28981.YahooMailNeo@web162504.mail.bf1.yahoo.com","subject":"Re: Git does not understand absolute Win'dos' path","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2012-11-14T09:45:40Z","receivedAt":"2012-11-14T09:45:40Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 11/14/2012 10:12, schrieb Martin Lichtin:\n> Maven's release plugin prepares a call Git like in this example:\n> \n> cmd.exe /X /C \"git commit --verbose -F\n> C:\\cygwin\\tmp\\maven-scm-915771020.commit pom.xml\"\n> \n> Git doesn't seem to understand the -F argument and treats it like a\n> relative path (relative to the repository root):\n> \n> $ cmd.exe /X /C \"git commit --verbose -F C:\\cygwin\\tmp\\commit pom.xml\" \n> fatal: could not read log file 'mytestdir/C:\\cygwin\\tmp\\commit': No\n> such file or directory\n\nAccording to the code, this should not happen if you are using msysgit.\nFor this reason, I guess you are using Cygwin git. Right?\n\nI don't know what Cygwin programs are supposed to do if they receive an\nargument that looks like a Windows style absolute path.\n\nOTOH, it could be argued that Maven should not treat a Cygwin program like\na DOS program, and it should pass the path in the POSIXy form\n/c/cygwin/tmp/commit or /tmp/commit.\n\n-- Hannes\n"},{"id":"203311","messageId":"50A54064.9060003@ramsay1.demon.co.uk","threadId":"32111","inReplyTo":"50A36844.3090000@viscovery.net","subject":"Re: Git does not understand absolute Win'dos' path","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2012-11-15T19:20:04Z","receivedAt":"2012-11-15T19:20:04Z","isPatch":false,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"Johannes Sixt wrote:\n> Am 11/14/2012 10:12, schrieb Martin Lichtin:\n>> Maven's release plugin prepares a call Git like in this example:\n>>\n>> cmd.exe /X /C \"git commit --verbose -F\n>> C:\\cygwin\\tmp\\maven-scm-915771020.commit pom.xml\"\n>>\n>> Git doesn't seem to understand the -F argument and treats it like a\n>> relative path (relative to the repository root):\n>>\n>> $ cmd.exe /X /C \"git commit --verbose -F C:\\cygwin\\tmp\\commit pom.xml\" \n>> fatal: could not read log file 'mytestdir/C:\\cygwin\\tmp\\commit': No\n>> such file or directory\n> \n> According to the code, this should not happen if you are using msysgit.\n> For this reason, I guess you are using Cygwin git. Right?\n> \n> I don't know what Cygwin programs are supposed to do if they receive an\n> argument that looks like a Windows style absolute path.\n> \n> OTOH, it could be argued that Maven should not treat a Cygwin program like\n> a DOS program, and it should pass the path in the POSIXy form\n> /c/cygwin/tmp/commit or /tmp/commit.\n\nI would argue precisely this! :-D\n\nATB,\nRamsay Jones\n"}]}