fix to git branch function when no repository found.