mirror of
https://github.com/actions/checkout.git
synced 2025-09-07 22:22:20 +08:00
Compare commits
2 Commits
v5
...
46a8a9c4ea
Author | SHA1 | Date | |
---|---|---|---|
|
46a8a9c4ea | ||
|
aea6c75c98 |
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user