mirror of
https://data.forgejo.org/actions/checkout
synced 2026-08-15 00:46:04 +00:00
Merge aea6c75c98 into 85e6279cec
This commit is contained in:
commit
46a8a9c4ea
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…
Add table
Add a link
Reference in a new issue