make all main references master under the hood

This commit is contained in:
Peter Cottle 2020-12-27 09:56:14 -07:00
parent feed75440c
commit 6af2950e77
2 changed files with 7 additions and 2 deletions

View file

@ -1654,6 +1654,11 @@ GitEngine.prototype.resolveRelativeRef = function(commit, relative) {
GitEngine.prototype.resolveStringRef = function(ref) {
ref = this.crappyUnescape(ref);
if (ref.match(/\bmain\b/)) {
ref = ref.replace(/\bmain\b/, 'master');
}
if (this.refs[ref]) {
return this.refs[ref];
}