[sysadmin-bin] gitlab-test contains non-authoritative copies of GNOME sources, do not ever sync content from it ove
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] gitlab-test contains non-authoritative copies of GNOME sources, do not ever sync content from it ove
- Date: Tue, 19 Sep 2017 14:39:07 +0000 (UTC)
commit 2988ef94f470f89bac01121573847b3b89a1b833
Author: Andrea Veri <averi redhat com>
Date: Tue Sep 19 16:28:13 2017 +0200
gitlab-test contains non-authoritative copies of GNOME sources, do not ever sync content from it over to
github
git/post-receive-mirror-github | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index acee7e8..de37822 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -108,7 +108,8 @@ def get_repo_settings (repo_name):
nss = {'doap': 'http://usefulinc.com/ns/doap#',
'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'}
- if socket.gethostname().startswith('gitlab'):
+ hostname = socket.gethostname()
+ if hostname == 'gitlab.gnome.org':
doap_url = 'https://%s/GNOME/%s/raw/master/%s.doap' % (hostname, repo_name, repo_name)
else:
doap_url = "https://git.gnome.org/browse/%s/plain/%s.doap" % (repo_name, repo_name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]