summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2011-03-05 22:01:57 (GMT)
committer tg(x) <*@tg-x.net>2013-06-05 15:58:41 (GMT)
commitacf211293cdf73db33da13d41de2731c2043ce23 (patch)
tree37af984b0195106fdcf9f6efd51b2235b5cbf2ee
parentebd0e9a62d5ca231cfe27db80d2ab2b059a762b2 (diff)
commit hook fixes
-rwxr-xr-xbin/gitzone2
-rwxr-xr-xhooks/post-commit4
2 files changed, 2 insertions, 4 deletions
diff --git a/bin/gitzone b/bin/gitzone
index fbf63bd..5faca9a 100755
--- a/bin/gitzone
+++ b/bin/gitzone
@@ -297,7 +297,7 @@ sub pre_commit {
stash_pop;
};
- git 'rev-parse --verify HEAD';
+ git 'rev-parse --verify HEAD', 0, -1;
check_what_changed($? ? undef : 'HEAD');
load_repo_config;
process_files;
diff --git a/hooks/post-commit b/hooks/post-commit
index 3d95029..da63476 100755
--- a/hooks/post-commit
+++ b/hooks/post-commit
@@ -1,5 +1,3 @@
#!/bin/sh
-if [ -f .gitzone-list ]; then
- /usr/bin/gitzone /etc/gitzone.conf post-commit
-fi
+/usr/bin/gitzone /etc/gitzone.conf post-commit