1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-08-12 00:34:51 +02:00

set default branch name on initialization to main

This commit is contained in:
Jayen 2025-03-29 17:13:06 +06:00
parent 85e6279cec
commit 9ec5884c0c
No known key found for this signature in database
GPG key ID: 8B47CCAAE46FADD3
2 changed files with 2 additions and 0 deletions

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])
}