mirror of
https://github.com/actions/checkout.git
synced 2024-11-12 11:08:04 +00:00
Compare commits
2 Commits
bafd9f8c54
...
da047f67a8
Author | SHA1 | Date | |
---|---|---|---|
|
da047f67a8 | ||
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user