mirror of
https://github.com/actions/checkout.git
synced 2026-01-13 22:27:17 +08:00
Merge 9ec5884c0c into 0c366fd6a8
This commit is contained in:
commit
29632b77c3
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -898,6 +898,7 @@ class GitCommandManager {
|
||||
}
|
||||
init() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
yield this.config('init.defaultBranch', 'main', true, true);
|
||||
yield this.execGit(['init', this.workingDirectory]);
|
||||
});
|
||||
}
|
||||
|
||||
@ -365,6 +365,7 @@ class GitCommandManager {
|
||||
}
|
||||
|
||||
async init(): Promise<void> {
|
||||
await this.config('init.defaultBranch', 'main', true, true)
|
||||
await this.execGit(['init', this.workingDirectory])
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user