0
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2024-12-20 01:19:21 +00:00
This commit is contained in:
Jeff Widman 2024-11-22 01:41:39 +01:00 committed by GitHub
commit 6a92ef8894
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 {