def METHOD_NAME(self, path):
    out, err = self.run(path, ["config", "--local", "remote.origin.url"])
    m = re.match(r"(?P<proto>https?:\/\/)(\w+@)?(?P<url>[_\w.\d/-]+)\.git", out)
    if m:
        return m.group("proto") + m.group("url")
    else:
        return ""