Template
1
0
mirror of http://gitea.com/actions/checkout synced 2024-11-30 21:22:26 +08:00
This commit is contained in:
Jeff Widman 2024-05-15 14:33:29 +09:00 committed by GitHub
commit f8b30d43ba
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 {