mirror of
https://github.com/actions/checkout.git
synced 2026-01-11 13:22:24 +08:00
Compare commits
2 Commits
v4
...
68e60931b0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68e60931b0 | ||
|
|
aea6c75c98 |
@@ -204,7 +204,7 @@ class GitCommandManager {
|
||||
}
|
||||
|
||||
async checkout(ref: string, startPoint: string): Promise<void> {
|
||||
const args = ['checkout', '--progress', '--force']
|
||||
const args = ['-c advice.detachedHead=false', 'checkout', '--progress', '--force']
|
||||
if (startPoint) {
|
||||
args.push('-B', ref, startPoint)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user