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

Re: Git thinks a failing command doesn't exist

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 11, 2010, 20:10 UTC
Message-ID
<AANLkTi=78rrF5aK0ku27haLhDp6a=W86EGc_RihdaHVW@mail.gmail.com>
In-Reply-To
<20100811194841.GA8689@coredump.intra.peff.net>
On Wed, Aug 11, 2010 at 19:48, Jeff King <peff@peff.net> wrote:
Show 14 quoted lines
> On Wed, Aug 11, 2010 at 07:45:14PM +0000, Ævar Arnfjörð Bjarmason wrote:
>
>> > So either your shell is producing that exit code for a different case,
>> > or git is broken.
>>
>> My shell is Debian /bin/dash 0.5.5.1-6.
>
> Hmm, I can't reproduce here, and I am also using dash as my shell.
>
>> Unfortunately the error with rebase was some one-off thing that I
>> couldn't reproduce. I'm not even sure /what/ I did to make it happen.
>
> OK. The code is _supposed_ to work as you expected, so if it happens
> again, I guess try to reproduce and we'll go from there.

git-rebase must have exited with a code of 127. I tried every exit code from 1 to 255, and 127 is the only one that does this:

$ head -n2 git-rebase #!/bin/sh exit 127

$ ./git rebase --continue git: 'rebase' is not a git command. See 'git --help'.

Did you mean this?
        rebase
Previous: Jeff King
Message 5 of 5 in “Git thinks a failing command doesn't exist”
  1. Ævar Arnfjörð BjarmasonAug 11, 2010
  2. Jeff KingAug 11, 2010
  3. Ævar Arnfjörð BjarmasonAug 11, 2010
  4. Jeff KingAug 11, 2010
  5. Ævar Arnfjörð BjarmasonAug 11, 2010

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.