We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf2807 commit 7ea6852Copy full SHA for 7ea6852
js/historyview.js
@@ -941,7 +941,9 @@ define(['d3'], function () {
941
previousHead.classed('checked-out', false);
942
}
943
944
- this._setCurrentBranch(ref === commit.id ? null : ref);
+ var startsWithCommit = commit.id.indexOf(ref) === 0
945
+ var startsWithHead = ref.toLowerCase().indexOf('head') === 0
946
+ this._setCurrentBranch(startsWithCommit || startsWithHead ? null : ref);
947
this.moveTag('HEAD', commit.id);
948
this.renderTags();
949
0 commit comments