mirror of
https://github.com/actions/checkout.git
synced 2025-06-05 07:32:37 +08:00
Merge aea6c75c98979b000b7132f629d501bbca205039 into 85e6279cec87321a52edac9c87bce653a07cf6c2
This commit is contained in:
commit
46a8a9c4ea
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user