Compare commits

...

2 commits

Author SHA1 Message Date
Josh Soref
3ebe9c9fd6
Merge 401851faf5 into cbb722410c 2024-11-14 11:01:08 -05:00
Josh Soref
401851faf5 Set initial-branch (#427)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2023-06-07 11:30:30 -04:00
2 changed files with 10 additions and 2 deletions

6
dist/index.js vendored
View file

@ -711,7 +711,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() {

View file

@ -328,7 +328,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> {