diff options
author | Andy Freeland <andy@andyfreeland.net> | 2021-04-23 11:38:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 14:38:51 -0400 |
commit | 86479d420f014fa63c717d8854fca33d5d6b6361 (patch) | |
tree | 2773d2e8e6058b11ce24f10c7615f4784e3f58b4 | |
parent | 598c2e3f1498a7e590ed764de7026cfed69ded71 (diff) |
Support matching GitHub remotes that don't end in `.git` (#563)
`.git` is optional in clones from GitHub.com.
-rw-r--r-- | src/git_config/git_config_entry.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git_config/git_config_entry.rs b/src/git_config/git_config_entry.rs index 2764e2bd..4b0d80a3 100644 --- a/src/git_config/git_config_entry.rs +++ b/src/git_config/git_config_entry.rs @@ -20,7 +20,7 @@ pub enum GitRemoteRepo { } lazy_static! { - static ref GITHUB_REMOTE_URL: Regex = Regex::new(r"github\.com[:/]([^/]+)/(.+)\.git").unwrap(); + static ref GITHUB_REMOTE_URL: Regex = Regex::new(r"github\.com[:/]([^/]+)/(.+)").unwrap(); } impl FromStr for GitRemoteRepo { |