From f82e00dee3491f1da333f44a35fbbebb5940128b Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sun, 13 Aug 2023 17:26:10 -0400 Subject: Support users other than git in github SSH URLs (#1509) E.g. org-123456@github.com:temporalio/api.git --- src/git_config/remote.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git_config/remote.rs b/src/git_config/remote.rs index b4053e7b..ed60e8ad 100644 --- a/src/git_config/remote.rs +++ b/src/git_config/remote.rs @@ -37,7 +37,7 @@ lazy_static! { static ref GITHUB_REMOTE_URL: Regex = Regex::new( r"(?x) ^ - (?:https://|git@)? # Support both HTTPS and SSH URLs, SSH URLs optionally omitting the git@ + (?:https://|[^@]+@)? # Support both HTTPS and SSH URLs github\.com [:/] # This separator differs between SSH and HTTPS URLs ([^/]+) # Capture the user/org name -- cgit v1.2.3