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

Re: rebase-merge/done: No such file or directory

From
Adeodato Simó <dato@net.com.org.es>
Date
Jan 12, 2009, 23:02 UTC
Message-ID
<20090112230228.GA28545@chistera.yi.org>
In-Reply-To
<alpine.DEB.1.00.0901122342420.3586@pacific.mpi-cbg.de>
* Johannes Schindelin [Mon, 12 Jan 2009 23:47:47 +0100]:
> > $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 ;-)

No, not really. Start a rebase -i. Change the *first* "pick" to a "squash". Save and exit the editor. You'll see the output jidanni mentioned:

  grep: .git/rebase-merge/done: No such file or directory
  Cannot 'squash' without a previous commit

The second line tells the user what happened (what their error was), but I guess we could do without the first one.

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
Debugging is twice as hard as writing the code in the first place. Therefore,
if you write the code as cleverly as possible, you are, by definition, not
smart enough to debug it.
                -- Brian W. Kernighan
Previous: Johannes SchindelinNext: Pierre Habouzit
Message 3 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.