We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7269d13 commit 0402b79Copy full SHA for 0402b79
src/taskgraph/run-task/run-task
@@ -670,7 +670,9 @@ def git_checkout(
670
# because it is the only scenario where tags could be present. (PRs, for
671
# example, always include an explicit rev.) Failure to do this could result
672
# in not having a tag, or worse: having an outdated version of one.
673
- tags = True if ref and base_repo == head_repo else False
+ tags = False
674
+ if ref and not ref.startswith("refs/heads/") and base_repo == head_repo:
675
+ tags = True
676
677
# If a ref isn't provided, we fetch all refs from head_repo, which may be slow.
678
target = ref if ref else "+refs/heads/*:refs/remotes/work/*"
0 commit comments