Skip to content

Commit

Permalink
#882: include default git branch in mcdev init / git init
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Apr 15, 2024
1 parent 342608d commit 5bf333a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/init.git.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Init = {
newRepoInitialized = false;
} else {
Util.logger.warn('No Git repository found. Initializing git:');
Util.execSync('git', ['init']);
Util.execSync('git', ['init', '--initial-branch=' + Util.defaultGitBranch]);
if (await File.pathExists('.git')) {
newRepoInitialized = true;
} else {
Expand Down

0 comments on commit 5bf333a

Please sign in to comment.