[sysadmin-bin] git as a string is contained within gitlab



commit 48f0765f26382e47ae5964f78c33090993e6ec53
Author: Andrea Veri <averi redhat com>
Date:   Mon Sep 4 16:15:32 2017 +0200

    git as a string is contained within gitlab

 git/post-receive-mirror-github |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index cef141e..517cca0 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -109,7 +109,7 @@ def get_repo_settings (repo_name):
            'rdf':  'http://www.w3.org/1999/02/22-rdf-syntax-ns#'}
 
     hostname = socket.gethostname()
-    if hostname.split('.')[0] in ('gitlab' or 'gitlab-test'):
+    if hostname.split('.')[0] == ('gitlab' or 'gitlab-test'):
         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]