cut branch name from the repo url