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

Re: Bug: problem with file named with dash character

From
Ffaux@goeswhere.com <faux@goeswhere.com>
Date
Jun 27, 2012, 09:57 UTC
Message-ID
<20120627095735.GA19118@goeswhere.com>
In-Reply-To
<80a7ce17-3ee7-4f09-b984-b6685e163b87@office.digitalus.nl>
On Wed, Jun 27, 2012 at 09:32:21AM +0200, Daniel Lyubomirov -|- Digitalus Bulgaria wrote:
Show 5 quoted lines
> Hi,
> 
> Аccidentally my colleague created a file in the root dir of the git repo called - (just dash).
> As result for every commit having this file, diff , merge, cherry-pick maybe others just hang.
> I tried to make rebase interactive to edit the commit and remove the file but that fails too.
Haha, it tries to read from standard in:
$ git init && printf '' >- && git add -- - && git commit -m "lol"
Pressing ^D allows it to continue.
Previous: Daniel Lyubomirov -|- Digitalus BulgariaNext: Junio C Hamano
Message 2 of 13 in “Bug: problem with file named with dash character”
  1. Daniel Lyubomirov -|- Digitalus BulgariaJun 27, 2012
  2. faux@goeswhere.comJun 27, 2012
  3. Junio C HamanoJun 27, 2012
  4. Jeff KingJun 27, 2012
  5. Jeff KingJun 27, 2012
  6. Junio C HamanoJun 27, 2012
  7. Junio C HamanoJun 27, 2012
  8. Junio C HamanoJun 27, 2012
  9. Junio C HamanoJun 27, 2012
  10. Junio C HamanoJun 27, 2012
  11. Jeff KingJun 27, 2012
  12. Junio C HamanoJun 27, 2012
  13. Jeff KingJun 27, 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.