mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-20 17:00:15 +03:00
Compare commits
2 commits
46a8a9c4ea
...
6a92ef8894
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6a92ef8894 | ||
![]() |
aea6c75c98 |
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