Fixed bad behavior in current_git_branch on branch names like feature/foo.