1
0
mirror of https://github.com/actions/checkout.git synced 2026-03-04 08:41:01 +08:00
This commit is contained in:
Jeff Widman 2024-11-04 12:38:29 +03:30 committed by GitHub
commit 68e60931b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,7 +204,7 @@ class GitCommandManager {
} }
async checkout(ref: string, startPoint: string): Promise<void> { async checkout(ref: string, startPoint: string): Promise<void> {
const args = ['checkout', '--progress', '--force'] const args = ['-c advice.detachedHead=false', 'checkout', '--progress', '--force']
if (startPoint) { if (startPoint) {
args.push('-B', ref, startPoint) args.push('-B', ref, startPoint)
} else { } else {