Re: rebase-merge/done: No such file or directory
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 12, 2009, 22:47 UTC
- Message-ID
- <alpine.DEB.1.00.0901122342420.3586@pacific.mpi-cbg.de>
- In-Reply-To
- <87ocycjq29.fsf@jidanni.org>
Hi,
On Tue, 13 Jan 2009, jidanni@jidanni.org wrote:
> Bug at git-rebase--interactive.sh:107: count=$(grep -c '^[^#]' < "$DONE")
Woohoo. Buuuug.
> $DONE might not exist. Do test -f $DONE before you grep it.
I cannot reproduce here. Since all the files in .git/rebase-merge/ are internal files to rebase--interactive, I think we do not have to guard against any possible user action rendering assumptions about internals invalid.
Wasting a minute, I seem to understand why I cannot reproduce. Just looking all of _two_ lines above the line you mentioned:
sed -e 1q < "$TODO" >> "$DONE"
Hrmpf. You're right. The user could have removed "$DONE"e between the two lines ;-)
Hth, Dscho