[sysadmin-bin] run-git-or-special-cmnd: really fix checking for hooks
- From: Owen Taylor <otaylor src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] run-git-or-special-cmnd: really fix checking for hooks
- Date: Fri, 6 Sep 2013 17:00:14 +0000 (UTC)
commit 05cd40c2e322aa7355029d39b722edfcbc8acaf6
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Fri Sep 6 13:00:10 2013 -0400
run-git-or-special-cmnd: really fix checking for hooks
run-git-or-special-cmd | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/run-git-or-special-cmd b/run-git-or-special-cmd
index d3303af..8e5515c 100755
--- a/run-git-or-special-cmd
+++ b/run-git-or-special-cmd
@@ -60,7 +60,7 @@ def validate_git_dir(path):
sys.exit(1)
if (not is_sysadmin and
- (!check_hook(path, 'pre-receive' or !check_hook(path, 'post-receive')))):
+ (not check_hook(path, 'pre-receive' or not check_hook(path, 'post-receive')))):
print >>sys.stderr, "git repository doesn't have required gnome.org hooks."
sys.exit(1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]