We are currently using Teamcity 9.1.6 to build a git-based project. We have our code split into two vcsroots. The second one is simple and always pulls from master, but the main root uses feature branches, with the default being the "develop" branch.
I have included %teamcity.build.branch% in the build number format field so that the specified branch shows up. When we do a custom run with a specific branch, that works just fine.
However, when we run the default run, instead of showing #develop, teamcity shows #<default>, which is not only ugly, but it also messes up further processing based on the name because of the < > characters included.
I have tried using %vcsroot.repo.branch%, but returns the default branch at all times, even when a feature branch is being built.