diff --git a/dist/index.js b/dist/index.js index a251a19..24b5e3e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -893,7 +893,11 @@ class GitCommandManager { } init() { return __awaiter(this, void 0, void 0, function* () { - yield this.execGit(['init', this.workingDirectory]); + yield this.execGit([ + 'init', + '--initial-branch=placeholder', + this.workingDirectory + ]); }); } isDetached() { diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index a45e15a..6ceac85 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -367,7 +367,11 @@ class GitCommandManager { } async init(): Promise { - await this.execGit(['init', this.workingDirectory]) + await this.execGit([ + 'init', + '--initial-branch=placeholder', + this.workingDirectory + ]) } async isDetached(): Promise {