mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
change master to main in CLI output when checking out via click
This commit is contained in:
parent
9e286770fe
commit
9eaf366d65
1 changed files with 6 additions and 1 deletions
|
@ -467,7 +467,12 @@ var VisBranch = VisBase.extend({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var commandStr = 'git checkout ' + this.get('branch').get('id');
|
var branchName = this.get('branch').get('id');
|
||||||
|
if (branchName.match(/\bmaster\b/)) {
|
||||||
|
branchName = branchName.replace(/\bmaster\b/, 'main');
|
||||||
|
}
|
||||||
|
|
||||||
|
var commandStr = 'git checkout ' + branchName;
|
||||||
var Main = require('../app');
|
var Main = require('../app');
|
||||||
Main.getEventBaton().trigger('commandSubmitted', commandStr);
|
Main.getEventBaton().trigger('commandSubmitted', commandStr);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue