git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git does not understand absolute Win'dos' path

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Nov 15, 2012, 19:20 UTC
Message-ID
<50A54064.9060003@ramsay1.demon.co.uk>
In-Reply-To
<50A36844.3090000@viscovery.net>
Johannes Sixt wrote:
Show 22 quoted lines
> Am 11/14/2012 10:12, schrieb Martin Lichtin:
>> Maven's release plugin prepares a call Git like in this example:
>>
>> cmd.exe /X /C "git commit --verbose -F
>> C:\cygwin\tmp\maven-scm-915771020.commit pom.xml"
>>
>> Git doesn't seem to understand the -F argument and treats it like a
>> relative path (relative to the repository root):
>>
>> $ cmd.exe /X /C "git commit --verbose -F C:\cygwin\tmp\commit pom.xml" 
>> fatal: could not read log file 'mytestdir/C:\cygwin\tmp\commit': No
>> such file or directory
> 
> According to the code, this should not happen if you are using msysgit.
> For this reason, I guess you are using Cygwin git. Right?
> 
> I don't know what Cygwin programs are supposed to do if they receive an
> argument that looks like a Windows style absolute path.
> 
> OTOH, it could be argued that Maven should not treat a Cygwin program like
> a DOS program, and it should pass the path in the POSIXy form
> /c/cygwin/tmp/commit or /tmp/commit.
I would argue precisely this! :-D

ATB, Ramsay Jones

Previous: Johannes Sixt
Message 3 of 3 in “Git does not understand absolute Win'dos' path”
  1. Martin LichtinNov 14, 2012
  2. Johannes SixtNov 14, 2012
  3. Ramsay JonesNov 15, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.