4
votes

I'm building GitHub pull requests in TeamCity. I'm setting the branch specification in git VCS root to +:refs/(pull/*)/head. I'm checking out the sources on agent.

With such setup I see that TeamCity doesn't fetch tags - the .git/refs/tags folder is empty.

Why is that?

1

1 Answers

2
votes

There is a small checkbox in your vcs settings that says "use tags as branches" (exact wording might differ across versions). Please check that box.

Also, you want to checkout pull requests which is different from tags. Last i checked github did not have the facility where you can check out pull requests. Please double check that aspect