mirror of
https://github.com/actions/checkout
synced 2024-09-27 05:45:51 +02:00
Merge aea6c75c98
into cd7d8d697e
This commit is contained in:
commit
46aac0be98
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,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 {
|
||||
|
|
Loading…
Reference in a new issue