From 86479d420f014fa63c717d8854fca33d5d6b6361 Mon Sep 17 00:00:00 2001 From: Andy Freeland Date: Fri, 23 Apr 2021 11:38:51 -0700 Subject: Support matching GitHub remotes that don't end in `.git` (#563) `.git` is optional in clones from GitHub.com. --- src/git_config/git_config_entry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3