removing git version dependent code in fetching branch name