Re: Bug: file named - on git commit
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Jan 28, 2013, 11:05 UTC
- Message-ID
- <87txq11sbk.fsf@pctrast.inf.ethz.ch>
- In-Reply-To
- <51065540.1090007@renemoser.net>
Rene Moser <mail@renemoser.net> writes:
Show 15 quoted lines
> > 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. > > This does not work: > > mkdir tmp && cd tmp; > echo foo >./-; > git init; git add .; > git commit -m "is this a bug?"
This was fixed by Junio around 4682d85 (diff-index.c: "git diff" has no need to read blob from the standard input, 2012-06-27), which is included starting with v1.7.12 and the v1.7.11.3 maint release. Please upgrade.
--
Thomas Rast
trast@{inf,student}.ethz.ch