From 87fe5d3037e83c06ee793d81fea8d06f6a2fff39 Mon Sep 17 00:00:00 2001 From: msaaddev Date: Sun, 25 Jul 2021 23:00:21 +0500 Subject: [PATCH 1/2] replaced primary branch from master to main --- packages/react-scripts/scripts/init.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-scripts/scripts/init.js b/packages/react-scripts/scripts/init.js index 16822e7a8a2..11af91c5020 100644 --- a/packages/react-scripts/scripts/init.js +++ b/packages/react-scripts/scripts/init.js @@ -62,6 +62,7 @@ function tryGitCommit(appPath) { execSync('git commit -m "Initialize project using Create React App"', { stdio: 'ignore', }); + execSync('git branch -M main', { stdio: 'ignore' }) return true; } catch (e) { // We couldn't commit in already initialized git repo, From 430cc8afd5b71f25e85bbe164c321abbb117706d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saad=20Irfan=20=E2=9A=A1=EF=B8=8F?= Date: Mon, 26 Jul 2021 01:04:19 +0500 Subject: [PATCH 2/2] added semi-colon --- packages/react-scripts/scripts/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/init.js b/packages/react-scripts/scripts/init.js index 11af91c5020..9c26ac96036 100644 --- a/packages/react-scripts/scripts/init.js +++ b/packages/react-scripts/scripts/init.js @@ -62,7 +62,7 @@ function tryGitCommit(appPath) { execSync('git commit -m "Initialize project using Create React App"', { stdio: 'ignore', }); - execSync('git branch -M main', { stdio: 'ignore' }) + execSync('git branch -M main', { stdio: 'ignore' }); return true; } catch (e) { // We couldn't commit in already initialized git repo,