diff --git a/dist/index.js b/dist/index.js index a251a19..0f5040d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -893,6 +893,7 @@ class GitCommandManager { } init() { return __awaiter(this, void 0, void 0, function* () { + yield this.config('init.defaultBranch', 'main', true, true); yield this.execGit(['init', this.workingDirectory]); }); } diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index a45e15a..6020c20 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -367,6 +367,7 @@ class GitCommandManager { } async init(): Promise { + await this.config('init.defaultBranch', 'main', true, true) await this.execGit(['init', this.workingDirectory]) }