Skip to content

Commit

Permalink
Set initial-branch (#427)
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
  • Loading branch information
jsoref committed Jun 7, 2023
1 parent f095bcc commit 401851f
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -670,7 +670,11 @@ class GitCommandManager {
}
init() {
return __awaiter(this, void 0, void 0, function* () {
yield this.execGit(['init', this.workingDirectory]);
yield this.execGit([
'init',
'--initial-branch=silence_warning_about_default_branch',
this.workingDirectory
]);
});
}
isDetached() {
6 changes: 5 additions & 1 deletion src/git-command-manager.ts
Original file line number Diff line number Diff line change
@@ -263,7 +263,11 @@ class GitCommandManager {
}

async init(): Promise<void> {
await this.execGit(['init', this.workingDirectory])
await this.execGit([
'init',
'--initial-branch=silence_warning_about_default_branch',
this.workingDirectory
])
}

async isDetached(): Promise<boolean> {

0 comments on commit 401851f

Please sign in to comment.