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-10-03 18:26:07 +02:00 committed by GitHub
commit 495d7038db
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> {
const args = ['checkout', '--progress', '--force']
const args = ['-c advice.detachedHead=false', 'checkout', '--progress', '--force']
if (startPoint) {
args.push('-B', ref, startPoint)
} else {