mirror of
https://github.com/actions/checkout.git
synced 2024-11-12 11:08:04 +00:00
Merge 401851faf5
into 6d193bf280
This commit is contained in:
commit
15749a602f
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -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() {
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user