Skip to content

Commit d4192a4

Browse files
committed
Fix rebase context menu not working
1 parent 948a203 commit d4192a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Controllers/PBGitWindowController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ - (IBAction)rebase:(id)sender
647647

648648
- (IBAction)rebaseHeadBranch:(id)sender
649649
{
650-
id <PBGitRefish> refish = [self refishForSender:sender refishTypes:@[kGitXCommitType]];
651-
if (!refish || ![refish isKindOfClass:[PBGitCommit class]])
650+
id <PBGitRefish> refish = [self refishForSender:sender refishTypes:@[kGitXCommitType, kGitXBranchType, kGitXRemoteBranchType]];
651+
if (!refish || ![refish isKindOfClass:[PBGitRef class]])
652652
return;
653653

654654
NSError *error = nil;

0 commit comments

Comments
 (0)