Set initial-branch (#427)

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
pull/465/head
Josh Soref 4 years ago
parent 25a956c84d
commit b342ec4a9c

6
dist/index.js vendored

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

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

Loading…
Cancel
Save