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 3c5b604 commit 2891112Copy full SHA for 2891112
src/taskgraph/run-task/run-task
@@ -692,7 +692,9 @@ def git_checkout(
692
# because it is the only scenario where tags could be present. (PRs, for
693
# example, always include an explicit rev.) Failure to do this could result
694
# in not having a tag, or worse: having an outdated version of one.
695
- tags = True if head_ref and base_repo == head_repo else False
+ tags = False
696
+ if head_ref and not head_ref.startswith("refs/heads/") and base_repo == head_repo:
697
+ tags = True
698
699
# If a head_ref isn't provided, we fetch all refs from head_repo, which may be slow.
700
target = head_ref if head_ref else "+refs/heads/*:refs/remotes/work/*"
0 commit comments