rebase -i: fix for optional [branch] parameter
commitc9e6589288b09f4e631c7f12f0f9a77c29851632
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 1 Aug 2007 22:31:03 +0000 (1 23:31 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Aug 2007 01:17:56 +0000 (1 18:17 -0700)
tree1c4d1aa4483d4e619b2e0eea7c38660b938fbce9
parent434e6ef89d73dcc812b3a44dfaff0ca8204a206e
rebase -i: fix for optional [branch] parameter

When calling "git rebase -i <upstream> <branch>", git should switch
to <branch> first.  This worked before, but I broke it by my
"Shut git rebase -i up" patch.

Fix that, and add a test to make sure that it does not break again.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh
t/t3404-rebase-interactive.sh