5
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-11-07 05:26:55 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Jayen
f5b71f057e
Merge 9ec5884c0c into ff7abcd0c3 2025-08-16 15:40:41 +09:00
Jayen
9ec5884c0c
set default branch name on initialization to main 2025-03-29 17:13:06 +06:00
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])
}