mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
make all main references master under the hood
This commit is contained in:
parent
feed75440c
commit
6af2950e77
2 changed files with 7 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue