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

Re: Bug: file named - on git commit

From
Duy Nguyen <pclouds@gmail.com>
Date
Jan 28, 2013, 10:58 UTC
Message-ID
<CACsJy8AvuaS44r+qUV59n5XFOXWYiWK_Q36=jSbRGFcVCorkKg@mail.gmail.com>
In-Reply-To
<51065540.1090007@renemoser.net>
On Mon, Jan 28, 2013 at 5:38 PM, Rene Moser <mail@renemoser.net> wrote:
Show 9 quoted lines
> Hi
>
> Found a little issue in git version 1.7.9.5 if a file named "-", causing
> "git commit" to read from stdin.
>
> (So you must hit ctrl-d or ctrl-c to finish the commit.)
>
> Everything looks ok to me after the commit. Other users reported to be
> fixed in 1.8.1.1 but haven't it tested myself.

Yes, it's fixed in 4682d85 (diff-index.c: "git diff" has no need to read blob from the standard input - 2012-06-27) since v1.7.11.3.

Show 16 quoted lines
> This does not work:
>
> mkdir tmp && cd tmp;
> echo foo >./-;
> git init; git add .;
> git commit -m "is this a bug?"
>
> Kind regards
>
> René
>
>
>
>
>
>
-- 
Duy
Previous: Matthieu MoyNext: Thomas Rast
Message 3 of 10 in “Bug: file named - on git commit”
  1. Rene MoserJan 28, 2013
  2. Matthieu MoyJan 28, 2013
  3. Duy NguyenJan 28, 2013
  4. Thomas RastJan 28, 2013
  5. [CLOSED FIXED] Bug: file named - on git commitRene Moser, Jan 28, 2013
  6. Jonathan NiederJan 28, 2013
  7. Junio C HamanoJan 28, 2013
  8. Junio C HamanoJan 28, 2013
  9. Junio C HamanoFeb 4, 2013
  10. Jonathan NiederFeb 4, 2013

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.