From 27b2449f295b1cb83ce223d2acbd2911ba903b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20F=C3=BCldner?= Date: Fri, 15 May 2020 16:54:01 +0200 Subject: [PATCH] Remove .git from repo_name regex to get a valid repository name. (#8) --- buildbot_gitea/reporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot_gitea/reporter.py b/buildbot_gitea/reporter.py index effb23f..e1f6abc 100644 --- a/buildbot_gitea/reporter.py +++ b/buildbot_gitea/reporter.py @@ -24,7 +24,7 @@ import re class GiteaStatusPush(http.HttpStatusPushBase): name = "GiteaStatusPush" neededDetails = dict(wantProperties=True) - ssh_url_match = re.compile(r"(ssh://)?[\w+\-\_]+@[\w\.\-\_]+:?(\d*/)?(?P[\w_\-\.]+)/(?P[\w_\-\.]+)(\.git)?") + ssh_url_match = re.compile(r"(ssh://)?[\w+\-\_]+@[\w\.\-\_]+:?(\d*/)?(?P[\w_\-\.]+)/(?P[\w_\-\.]+?)(\.git)?") @defer.inlineCallbacks def reconfigService(self, baseURL, token,