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

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

Previous: jidanni@jidanni.orgNext: Adeodato Simó
Message 2 of 5 in “rebase-merge/done: No such file or directory”
  1. jidanni@jidanni.orgJan 12, 2009
  2. Johannes SchindelinJan 12, 2009
  3. Adeodato SimóJan 12, 2009
  4. Avoid spurious error messages on error mistakes.Pierre Habouzit, Jan 12, 2009
  5. Junio C HamanoJan 13, 2009

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.