Skip to content

Commit 48ed09b

Browse files
committed
Fix rebasing onto commits
1 parent b1696ce commit 48ed09b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controllers/PBGitWindowController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ - (IBAction)rebase:(id)sender
648648
- (IBAction)rebaseHeadBranch:(id)sender
649649
{
650650
id <PBGitRefish> refish = [self refishForSender:sender refishTypes:@[kGitXCommitType, kGitXBranchType, kGitXRemoteBranchType]];
651-
if (!refish || ![refish isKindOfClass:[PBGitRef class]])
651+
if (!refish || ![refish conformsToProtocol:@protocol(PBGitRefish)])
652652
return;
653653

654654
NSError *error = nil;

0 commit comments

Comments
 (0)