mirror of
https://github.com/actions/checkout.git
synced 2025-12-15 22:19:06 +08:00
Compare commits
2 Commits
ddf6f2e59c
...
01b097c913
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01b097c913 | ||
|
|
9ec5884c0c |
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -893,6 +893,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]);
|
||||
});
|
||||
}
|
||||
|
||||
@ -367,6 +367,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