mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Bugfix: Rebasing the head ref
Only use the ref being rebased onto otherwise git will create a detached HEAD.
This commit is contained in:
@@ -671,10 +671,8 @@
|
||||
|
||||
- (IBAction) rebase:(id)sender
|
||||
{
|
||||
if (selectedCommit) {
|
||||
PBGitRef *headRef = [[repository headRef] ref];
|
||||
[repository rebaseBranch:headRef onRefish:selectedCommit];
|
||||
}
|
||||
if (selectedCommit)
|
||||
[repository rebaseBranch:nil onRefish:selectedCommit];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
+1
-2
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user