correct git branch parsing