Skip to content

Commit

Permalink
Support users other than git in github SSH URLs (#1509)
Browse files Browse the repository at this point in the history
E.g.
org-123456@github.com:temporalio/api.git
  • Loading branch information
dandavison committed Aug 13, 2023
1 parent ae26b54 commit f82e00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git_config/remote.rs
Expand Up @@ -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
Expand Down

0 comments on commit f82e00d

Please sign in to comment.