Skip to content

Commit e61343f

Browse files
committed
Create repo after installing react and react-dom
1 parent f725934 commit e61343f

File tree

1 file changed

+5
-5
lines changed
  • packages/react-scripts/scripts

1 file changed

+5
-5
lines changed

packages/react-scripts/scripts/init.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function gitInit() {
4141

4242
execSync('git init', {stdio: 'ignore'});
4343
execSync('git add .', {stdio: 'ignore'});
44-
execSync('git commit -m "initial commit from create-react-app"', {stdio: 'ignore'});
44+
execSync('git commit -m "Initial commit from create-react-app"', {stdio: 'ignore'});
4545

4646
return true;
4747
} catch (e) {
@@ -101,10 +101,6 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template
101101
}
102102
});
103103

104-
if (gitInit()) {
105-
console.log('Initializing git repository');
106-
}
107-
108104
var command;
109105
var args;
110106

@@ -145,6 +141,10 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template
145141
}
146142
}
147143

144+
if (gitInit()) {
145+
console.log('Initializing git repository');
146+
}
147+
148148
// Display the most elegant way to cd.
149149
// This needs to handle an undefined originalDirectory for
150150
// backward compatibility with old global-cli's.

0 commit comments

Comments
 (0)