[sysadmin-bin] Just exit without sending anything to stdout if hooks.mailinglist is not set (https://gitlab.gnome.o



commit a51313497f4f31bf14580fde7e37da2d0b5d5f6d
Author: Andrea Veri <averi redhat com>
Date:   Wed Sep 12 12:18:15 2018 +0200

    Just exit without sending anything to stdout if hooks.mailinglist is not set 
(https://gitlab.gnome.org/Infrastructure/GitLab/issues/339)

 git/gnome-post-receive-email | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/git/gnome-post-receive-email b/git/gnome-post-receive-email
index 7bc8b70..1e512a3 100755
--- a/git/gnome-post-receive-email
+++ b/git/gnome-post-receive-email
@@ -946,7 +946,7 @@ def main():
         pass
 
     if not recipients:
-        die("hooks.mailinglist is not set")
+        sys.exit(1)
 
     if socket.gethostname() == 'gitlab.gnome.org':
        user = os.environ['GL_USERNAME']


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]