1
0
mirror of https://github.com/actions/checkout.git synced 2026-06-17 17:24:00 +08:00
This commit is contained in:
Josh Soref
2024-10-25 10:23:44 +05:30
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -328,7 +328,11 @@ class GitCommandManager {
}
async init(): Promise<void> {
await this.execGit(['init', this.workingDirectory])
await this.execGit([
'init',
'--initial-branch=silence_warning_about_default_branch',
this.workingDirectory
])
}
async isDetached(): Promise<boolean> {