'Parse the url, look for a branch and set it accordingly
:type repository_url: string
:param repository_url: The base URL of the git repository'

def _set_repo_url_branch(self, repository_url):

    branch = 'master'
    match = repository_url.split(':')
    if (len(match) > 2):
        branch = match[2]
        repository_url = re.sub((':' + branch), '', repository_url)
    self.branch = branch
