mirror of
https://github.com/frappe/bench.git
synced 2024-11-17 02:25:16 +00:00
fix: Allow git url with custom username (#1200)
Allow git url with custom user, and not just the git user.
This commit is contained in:
parent
9b2b105b65
commit
641181260e
@ -53,7 +53,7 @@ def write_appstxt(apps, bench_path='.'):
|
|||||||
|
|
||||||
def is_git_url(url):
|
def is_git_url(url):
|
||||||
# modified to allow without the tailing .git from https://github.com/jonschlinkert/is-git-url.git
|
# modified to allow without the tailing .git from https://github.com/jonschlinkert/is-git-url.git
|
||||||
pattern = r"(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)?(\/?|\#[-\d\w._]+?)$"
|
pattern = r"(?:git|ssh|https?|\w*@[-\w.]+):(\/\/)?(.*?)(\.git)?(\/?|\#[-\d\w._]+?)$"
|
||||||
return bool(re.match(pattern, url))
|
return bool(re.match(pattern, url))
|
||||||
|
|
||||||
def get_excluded_apps(bench_path='.'):
|
def get_excluded_apps(bench_path='.'):
|
||||||
|
Loading…
Reference in New Issue
Block a user