We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea2a72d commit 954c021Copy full SHA for 954c021
packages/create-flex-plugin/src/utils/github.ts
@@ -67,10 +67,10 @@ export const parseGitHubUrl = async (url: string): Promise<GitHubInfo> => {
67
const hasMaster = branches.find((branch) => branch.name === 'master');
68
const hasMain = branches.find((branch) => branch.name === 'main');
69
70
- if (hasMaster) {
71
- info.ref = 'master';
72
- } else if (hasMain) {
+ if (hasMain) {
73
info.ref = 'main';
+ } else if (hasMaster) {
+ info.ref = 'master';
74
} else {
75
throw new Error(ERROR_BRANCH_MASTER_MAIN);
76
}
0 commit comments