refactor: replace all master to main

This commit is contained in:
Anh Hồng 2021-04-19 09:51:20 +07:00
parent 4148f0b846
commit b7ac2851c6
55 changed files with 431 additions and 455 deletions

View file

@ -252,7 +252,7 @@ var commandConfig = {
} else if (firstArg) {
source = firstArg;
assertIsBranch(engine.origin, source);
// get o/master locally if master is specified
// get o/main locally if main is specified
destination = engine.origin.resolveID(source).getPrefixedID();
} else {
// can't be detached
@ -296,7 +296,7 @@ var commandConfig = {
switch (generalArgs.length) {
// git fakeTeamwork
case 0:
branch = 'master';
branch = 'main';
numToMake = 1;
break;
@ -307,7 +307,7 @@ var commandConfig = {
numToMake = 1;
} else {
numToMake = parseInt(generalArgs[0], 10);
branch = 'master';
branch = 'main';
}
break;
@ -393,7 +393,7 @@ var commandConfig = {
// technically we have a destination here as the remote branch
source = firstArg;
assertIsBranch(engine.origin, source);
// get o/master locally if master is specified
// get o/main locally if main is specified
destination = engine.origin.resolveID(source).getPrefixedID();
}
if (source) { // empty string fails this check