I build my application using rake scripts. I want to have my script to call "git rev-list --count develop" but unfortunately the branches are not known. The end goal is to have the number of commits on my current branch, assuming it's branching from develop. I would like the VCS root step to "git fetch -a origin" instead of just the branch it is about to checkout. Is that possible? Any other suggestion?