Treating 'master' and 'refs/heads/master' as the same branch in TeamCity

Viewed 5544

Working with github and teamcity, builds seem to either be refs/heads/master or master branch.

Whenever the github service hook launches a build, it is on the branch master.

Whenever TeamCity launches a build (e.g. when I start a build, or a dependency building triggers a build) the branch is refs/heads/master.

This causes two build numbers to be shown on the same page, the last build for master and the last build for refs/heads/master.

Is there a way to make TeamCity triggered builds build master instead of refs/heads/master?

Or is there a way to get master and refs/heads/master to be treated as the same branch, not as different ones?

1 Answers
Related