Allow installation from gitea

[Gitea](https://about.gitea.com/) has branch URL in form `https://domain.tld/gitea/path/<owner>/<repo>_ynh/src/branch/<branch_name>`.
This commit is contained in:
orhtej2 2023-07-03 22:24:47 +02:00 committed by GitHub
parent 510e82fa22
commit f571aff93c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ re_app_instance_name = re.compile(
)
APP_REPO_URL = re.compile(
r"^https://[a-zA-Z0-9-_.]+/[a-zA-Z0-9-_./~]+/[a-zA-Z0-9-_.]+_ynh(/?(-/)?tree/[a-zA-Z0-9-_.]+)?(\.git)?/?$"
r"^https://[a-zA-Z0-9-_.]+/[a-zA-Z0-9-_./~]+/[a-zA-Z0-9-_.]+_ynh(/?(-/)?(tree|src/branch)/[a-zA-Z0-9-_.]+)?(\.git)?/?$"
)
APP_FILES_TO_COPY = [