[sysadmin-bin] With homepage missing use project's gitlab URL instead of the generic gitlab URL
- From: Andrea Veri <averi src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] With homepage missing use project's gitlab URL instead of the generic gitlab URL
- Date: Tue, 15 Oct 2019 07:33:06 +0000 (UTC)
commit 3f3f79a1dd11111f4e33663437437477d5dcd011
Author: Andrea Veri <av gnome org>
Date: Tue Oct 15 07:33:02 2019 +0000
With homepage missing use project's gitlab URL instead of the generic gitlab URL
git/post-receive-mirror-github | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index f695a85..01f0dd4 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -157,8 +157,8 @@ def get_repo_settings(repo_name):
name = name.text if name != None else repo_name
desc = desc.text if desc != None else name
- homepage = homepage.get(resource) if homepage != None else 'https://gitlab.gnome.org/GNOME'
- homepage = homepage if homepage != None else 'https://gitlab.gnome.org/GNOME'
+ homepage = homepage.get(resource) if homepage != None else 'https://gitlab.gnome.org/GNOME/%s' %
repo_name
+ homepage = homepage if homepage != None else 'https://gitlab.gnome.org/GNOME/%s' % repo_name
return {
"homepage": homepage.encode("utf-8").decode("utf-8"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]