[sysadmin-bin] Make sure ostree is triggered only when GNOME related modules are modified
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Make sure ostree is triggered only when GNOME related modules are modified
- Date: Mon, 4 Sep 2017 13:32:37 +0000 (UTC)
commit b9c7ed8059032a5e2bd69d087c590e0aff1df15f
Author: Andrea Veri <averi redhat com>
Date: Mon Sep 4 15:32:27 2017 +0200
Make sure ostree is triggered only when GNOME related modules are modified
git/post-receive-notify-ostree | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/git/post-receive-notify-ostree b/git/post-receive-notify-ostree
index d542bd5..d24ce17 100755
--- a/git/post-receive-notify-ostree
+++ b/git/post-receive-notify-ostree
@@ -37,6 +37,10 @@ sys.path.insert(0, script_dir)
from git import *
def main():
+ allowed_paths = ['/var/opt/gitlab/git-data/repositories/GNOME', '/git']
+ if os.path.dirname(os.getcwd()) not in allowed_paths:
+ sys.exit(1)
+
module_name = get_module_name()
# fishpoke only allows a limited set of characters in subjects, which
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]