gitweb: Add optional base_git_url parameter to lister
Similar to cgit, it exist cases where git clone URLs for projects hosted on a gitweb instance cannot be found when scraping project pages or cannot be easily derived from the gitweb instance root URL.
So add an optional base_git_url parameter enabling to compute correct clone URLs by appending project names to it.
Some examples where clone URLs cannot currently be successfully computed by the lister:
-
projects hosted on
http://hgm.nubati.net
have clone URLs in the formhttp://hgm.nubati.net/git/{project_name}
but the lister currently outputs URLs in the formgit://hgm.nubati.net/{project_name}
-
projects hosted on
https://gitweb.factorcode.org
have clone URLs in the formhttps://factorcode.org/git/{project_name}
but the lister currently outputs URLs in the formgit://gitweb.factorcode.org/{project_name}
-
projects hosted on
https://gitweb.stoutner.com
have clone URLs in the formhttps://git.stoutner.com/{project_name}
but the lister currently outputs URLs in the formgit://gitweb.stoutner.com/{project_name}