'Return URL of the first remote encountered.'

def get_url(self, location):

    remotes = self.run_command(['config', '--get-regexp', 'remote\\..*\\.url'], show_stdout=False, cwd=location)
    first_remote = remotes.splitlines()[0]
    url = first_remote.split('    ')[1]
    return url.strip()
