Bugfix: Rebasing the head ref

Only use the ref being rebased onto otherwise git will create a detached HEAD.
This commit is contained in:
Nathan Kinsinger
2010-09-19 10:51:03 -06:00
parent 9a9de9577c
commit 6f83f2382c
2 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -147,9 +147,8 @@
- (void) rebaseHeadBranch:(PBRefMenuItem *)sender
{
id <PBGitRefish> refish = [sender refish];
PBGitRef *headRef = [[historyController.repository headRef] ref];
[historyController.repository rebaseBranch:headRef onRefish:refish];
[historyController.repository rebaseBranch:nil onRefish:refish];
}