Skip to content

Commit 3de28fb

Browse files
committed
Fix exception thrown when pushing a ref
Introduced by an oversight in the commit 4735b1b »Improve handling of multiple item selections«
1 parent 5ec0372 commit 3de28fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Classes/Controllers/PBRefController.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ - (void)confirmPushRefSheetDidEnd:(NSAlert *)sheet returnCode:(int)returnCode co
111111

112112
- (void) pushUpdatesToRemote:(PBRefMenuItem *)sender
113113
{
114-
PBGitRef *remoteRef = [(PBGitRef *)[sender refishs] remoteRef];
115-
114+
PBGitRef *remoteRef = [(PBGitRef *)sender.refishs.firstObject remoteRef];
116115
[self showConfirmPushRefSheet:nil remote:remoteRef];
117116
}
118117

0 commit comments

Comments
 (0)