Speed up lookup of branch name for git as well