mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-21 01:00:16 +03:00
Merge aea6c75c98
into cbb722410c
This commit is contained in:
commit
6a92ef8894
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue