Dachary has uploaded a new change for review. https://gerrit.wikimedia.org/r/310791
Change subject: repository: sf.net longest suffix first ...................................................................... repository: sf.net longest suffix first Have code-git before code otherwise the shortest is selected and leads to the wrong repository URL. Change-Id: I3610f434decf914a0a0267a1c8df0ff3d6fd1429 Signed-off-by: Loic Dachary <l...@dachary.org> --- M FLOSSbot/repository.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/FLOSSbot refs/changes/91/310791/1 diff --git a/FLOSSbot/repository.py b/FLOSSbot/repository.py index 8bd6ad8..e5959f4 100644 --- a/FLOSSbot/repository.py +++ b/FLOSSbot/repository.py @@ -481,7 +481,7 @@ if r.status_code != requests.codes.ok: return None u = re.findall('git clone (git://git.code.sf.net/p/.*/' - '(?:git|code|code-git))', r.text) + '(?:git|code-git|code))', r.text) if len(u) == 1: return u[0] u = re.findall('hg clone (http://hg.code.sf.net/p/.*/code)', -- To view, visit https://gerrit.wikimedia.org/r/310791 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3610f434decf914a0a0267a1c8df0ff3d6fd1429 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/bots/FLOSSbot Gerrit-Branch: master Gerrit-Owner: Dachary <l...@dachary.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits