Limit Git VCS root to one branch?

Is it possible for Git VCS branches to limit the git fetch/pull operations to a particular branch? This would limit the overall traffic and time consumption when fetching data from a remote Git repository.

I know we can do shallow clones using teamcity.git.use.shallow.clone (see http://confluence.jetbrains.com/display/TCD8/Git+(JetBrains) ), and git fetch and git clone itself support only grabbing data for a particular branch (in our case we want master, but not any feature branches), e.g. see http://stackoverflow.com/questions/1778088/how-to-clone-a-single-branch-in-git

Is there a way to achieve this in TeamCity?

1 comment

Please sign in to leave a comment.