diff --git a/dist/index.js b/dist/index.js index fe3f317..3cfd000 100644 --- a/dist/index.js +++ b/dist/index.js @@ -898,6 +898,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 f5ba40e..978121d 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -365,6 +365,7 @@ class GitCommandManager { } async init(): Promise { + await this.config('init.defaultBranch', 'main', true, true) await this.execGit(['init', this.workingDirectory]) }