This commit is contained in:
Josh Soref 2024-09-10 14:51:49 +08:00 committed by GitHub
commit 15749a602f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

6
dist/index.js vendored
View File

@ -711,7 +711,11 @@ class GitCommandManager {
} }
init() { init() {
return __awaiter(this, void 0, void 0, function* () { 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() { isDetached() {

View File

@ -328,7 +328,11 @@ class GitCommandManager {
} }
async init(): Promise<void> { 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> { async isDetached(): Promise<boolean> {