0
mirror of https://github.com/actions/checkout.git synced 2025-08-14 18:15:08 +00:00

Merge 9ec5884c0c408b3811d9d5f8cccf7315e31fdc64 into 8edcb1bdb4e267140fa742c62e395cd74f332709

This commit is contained in:
Jayen 2025-07-28 22:56:46 +07:00 committed by GitHub
commit d76540eddd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

1
dist/index.js vendored
View File

@ -711,6 +711,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]);
});
}

View File

@ -328,6 +328,7 @@ class GitCommandManager {
}
async init(): Promise<void> {
await this.config('init.defaultBranch', 'main', true, true)
await this.execGit(['init', this.workingDirectory])
}