mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
Resolves #801
This commit is contained in:
parent
61aa3d0919
commit
9cadfa1eee
1 changed files with 1 additions and 1 deletions
|
@ -1617,7 +1617,7 @@ GitEngine.prototype.resolveName = function(someRef) {
|
|||
return 'commit ' + obj.get('id');
|
||||
}
|
||||
if (obj.get('type') == 'branch') {
|
||||
return 'branch "' + obj.get('id') + '"';
|
||||
return 'branch "' + obj.get('id').replace(/\bmaster\b/, 'main') + '"';
|
||||
}
|
||||
// we are dealing with HEAD
|
||||
return this.resolveName(obj.get('target'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue