We use hierarchical branch names, so we have something like:
- master
- somework (forked and merged into the master)
- olderrelease / master
- oldrelease / someworkonolderrelease (branched and merged into oldrelease / master)
We created TeamCity, so one set of build projects will only build git branches that have a c prefix olderrelease/
. Branch specifications for these assemblies refs/heads/olderrelease/*
.
This works well for us. However, the problem is related to TeamCity projects without a prefix, where we need to cancel all subfolders. To do this, we do the following:
+:refs/heads/*
-:refs/heads/olderrelease/*
This works, but we have quite a few subfolders, so eliminating them all with help -:
repeats very quickly, especially when you add tags to the mix.
- :
+:refs/heads/*
-:refs/heads/*/*
. , "" ?