Updated git branch name fetching functions