diff --git a/dist/index.js b/dist/index.js index fe3f317..40afb80 100644 --- a/dist/index.js +++ b/dist/index.js @@ -898,7 +898,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 f5ba40e..dae1a91 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -365,7 +365,11 @@ class GitCommandManager { } async init(): Promise { - await this.execGit(['init', this.workingDirectory]) + await this.execGit([ + 'init', + '--initial-branch=placeholder', + this.workingDirectory + ]) } async isDetached(): Promise {