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

Re: Silent failure to add Windows-style paths in Cygwin Git

From
Duy Nguyen <pclouds@gmail.com>
Date
Apr 25, 2016, 12:18 UTC
Message-ID
<CACsJy8CDbfKWYdXg1WtcCeZMGV2OwjgBzBgj56h87hes5Dom4g@mail.gmail.com>
In-Reply-To
<20160425120705.GN2345@dinwoodie.org>
On Mon, Apr 25, 2016 at 7:07 PM, Adam Dinwoodie <adam@dinwoodie.org> wrote:
Show 18 quoted lines
> [Resending as my initial attempt appears to have not made it to the
> list.  Apologies if this results in a double-post.]
>
> If I attempt to `git add` an extant file specified using a Windows-style
> path on Cygwin Git, this doesn't add the file, and produces no error
> message:
>
>     ...
>
> I wouldn't expect adding the file to actually succeed, but I would
> expect it to either succeed or produce an error, rather than silently
> failing.
>
> Experimentation shows I get the same behaviour for 'c:\tmp\file',
> 'c:/tmp/file' and 'subdir\file'.  I'm seeing this on v2.8.0; the
> downstream report says the same behaviour occurs on v2.7.4[0], and I've
> also seen what appears to be the same behaviour on a v2.0.5 build I
> produced to check.

Can you try git-bisect if possible? An strace log may be helpful otherwise (looks like strace is supported on cygwin, but I don't know to what level)

-- 
Duy
Previous: Adam Dinwoodie
Message 2 of 2 in “Silent failure to add Windows-style paths in Cygwin Git”
  1. Adam DinwoodieApr 25, 2016
  2. Duy NguyenApr 25, 2016

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.