mirror of
https://gitea.com/actions/checkout.git
synced 2025-04-21 00:05:39 +08:00
Merge aea6c75c98979b000b7132f629d501bbca205039 into 44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
This commit is contained in:
commit
f8b30d43ba
@ -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