Compare commits

...

2 Commits

Author SHA1 Message Date
Josh Soref
a8246422d7
Merge 401851faf540c408c29b315c945a555437d15a2b into 11bd71901bbe5b1630ceea73d27597364c9af683 2024-10-25 10:23:44 +05:30
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() { 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> {