Remove .git from repo_name regex to get a valid repository name. (#8)
This commit is contained in:
parent
2de8fa49e3
commit
27b2449f29
|
@ -24,7 +24,7 @@ import re
|
||||||
class GiteaStatusPush(http.HttpStatusPushBase):
|
class GiteaStatusPush(http.HttpStatusPushBase):
|
||||||
name = "GiteaStatusPush"
|
name = "GiteaStatusPush"
|
||||||
neededDetails = dict(wantProperties=True)
|
neededDetails = dict(wantProperties=True)
|
||||||
ssh_url_match = re.compile(r"(ssh://)?[\w+\-\_]+@[\w\.\-\_]+:?(\d*/)?(?P<owner>[\w_\-\.]+)/(?P<repo_name>[\w_\-\.]+)(\.git)?")
|
ssh_url_match = re.compile(r"(ssh://)?[\w+\-\_]+@[\w\.\-\_]+:?(\d*/)?(?P<owner>[\w_\-\.]+)/(?P<repo_name>[\w_\-\.]+?)(\.git)?")
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def reconfigService(self, baseURL, token,
|
def reconfigService(self, baseURL, token,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user