From f71e75d0d40864118e1dccf7c6c6f2b2567b7067 Mon Sep 17 00:00:00 2001 From: Vincent Moens Date: Thu, 24 Oct 2024 07:56:28 -0700 Subject: [PATCH] revert --- ghstack/github_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghstack/github_utils.py b/ghstack/github_utils.py index 09c0a96..ecb4b70 100644 --- a/ghstack/github_utils.py +++ b/ghstack/github_utils.py @@ -27,7 +27,7 @@ def get_github_repo_name_with_owner( # Grovel in remotes to figure it out remote_url = sh.git("remote", "get-url", remote_name) while True: - match = r"^git@{github_url}:([^/]+)/(.+?)(?:\.git)?$".format( + match = r"^git@{github_url}:/?([^/]+)/(.+?)(?:\.git)?$".format( github_url=github_url ) m = re.match(match, remote_url)