# [BUG] Invalid rebase command leaves unclean status

2 messages from 2007-12-19 to 2007-12-19. Participants: ulrik, Wincent Colaiuta.
Thread: https://gitlist.dev/t/11350

## ulrik, 2007-12-19 00:47

Subject: [BUG] Invalid rebase command leaves unclean status
Message-ID: <a1b6cb1b0712181647v34822692t4a3d88f90cd7346@mail.gmail.com>
URL: https://gitlist.dev/e/a1b6cb1b0712181647v34822692t4a3d88f90cd7346%40mail.gmail.com

```
Hello git list

A bug in rebase -i: A typo in the command (for example in the branch
name) still makes later invocations of rebase think a rebase is
already in process.

I found this bug in master, and it was already reported to the mailing
list under version 1.5.3.5, but there were no follow-ups to that mail.
I'm using 1.5.3.7 and it is still present, and looking at the maint
branch it does not seem to be mentioned in post-x.3.7 changes there.
So I am now reporting this bug again. I'm sorry for not checking this
in master, I'll have to ask someone on the list to do that.

Original email:
http://marc.info/?l=git&m=119410951019002&w=2
Date:       2007-11-03 17:04:51
Message-ID: 200711031804.52259.elendil () planet ! nl

# A sample session:
# Invoking rebase with a typo, there is no "muster" branch
$ git rebase -i muster
fatal: Needed a single revision
Invalid base
$ git rebase -i master
Interactive rebase already started
$ git rebase --abort
fatal: Needed a single revision
# Even though rebase --abort reports an error, rebase's internal state
is now cleared

Regards,
Ulrik Sverdrup

```

## Wincent Colaiuta, 2007-12-19 07:42

Subject: Re: [BUG] Invalid rebase command leaves unclean status
Message-ID: <E2D86FF0-52D2-40D9-A03A-04F400A2C0C6@wincent.com>
URL: https://gitlist.dev/e/E2D86FF0-52D2-40D9-A03A-04F400A2C0C6%40wincent.com
In-Reply-To: <a1b6cb1b0712181647v34822692t4a3d88f90cd7346@mail.gmail.com>

```
El 19/12/2007, a las 1:47, ulrik escribió:

> Hello git list
>
> A bug in rebase -i: A typo in the command (for example in the branch
> name) still makes later invocations of rebase think a rebase is
> already in process.

It's already been fixed on master:

$ mkdir demo
$ git init
Initialized empty Git repository in .git/
$ echo a > a
$ git add a
$ git commit -m a
Created initial commit 36a2b58: a
  1 files changed, 1 insertions(+), 0 deletions(-)
  create mode 100644 a
$ git checkout -b other
Switched to a new branch "other"
$ git rebase -i muster
fatal: Needed a single revision
Invalid base
$ git rebase -i master
Nothing to do

Cheers,
Wincent

```
