Skip to content

Commit 7d3a7e1

Browse files
Uwe Heesuhees
authored andcommitted
Reset the selectedCommitBeforeCommit after revisions update.
This fixes a bug where selecting a branch in the sidebar did not select the branch head in the revision list.
1 parent 5fc5929 commit 7d3a7e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PBGitHistoryController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ - (IBAction) refresh:(id)sender
409409
{
410410
selectedCommitBeforeRefresh = selectedCommit;
411411
[repository forceUpdateRevisions];
412+
selectedCommitBeforeRefresh = NULL;
412413
}
413414

414415
- (void) updateView

0 commit comments

Comments
 (0)