mirror of
https://github.com/actions/checkout.git
synced 2025-08-23 02:38:10 +03:00
Compare commits
2 commits
86eceafa51
...
6d83f3146a
Author | SHA1 | Date | |
---|---|---|---|
|
6d83f3146a | ||
|
02ade5d400 |
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
|||
|
||||
// When all history is fetched, the ref we're interested in may have moved to a different
|
||||
// commit (push or force push). If so, fetch again with a targeted refspec.
|
||||
if (!(await refHelper.testRef(git, settings.ref, settings.commit))) {
|
||||
if (!settings.refs.startsWith("refs/tags") && !(await refHelper.testRef(git, settings.ref, settings.commit))) {
|
||||
refSpec = refHelper.getRefSpec(settings.ref, settings.commit)
|
||||
await git.fetch(refSpec, fetchOptions)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue