Merge 401851faf540c408c29b315c945a555437d15a2b into b4ffde65f46336ab88eb53be808477a3936bae11

This commit is contained in:
Josh Soref 2023-10-24 12:49:21 +02:00 committed by GitHub
commit c9066362fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

6
dist/index.js vendored
View File

@ -695,7 +695,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

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