tcommit hook fixes - gitzone - git-based zone management tool for static and dynamic domains
HTML git clone https://git.parazyd.org/gitzone
DIR Log
DIR Files
DIR Refs
---
DIR commit acf211293cdf73db33da13d41de2731c2043ce23
DIR parent ebd0e9a62d5ca231cfe27db80d2ab2b059a762b2
HTML Author: tg(x) <*@tg-x.net>
Date: Sat, 5 Mar 2011 23:01:57 +0100
commit hook fixes
Diffstat:
M bin/gitzone | 2 +-
M hooks/post-commit | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
---
DIR diff --git a/bin/gitzone b/bin/gitzone
t@@ -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;
DIR diff --git a/hooks/post-commit b/hooks/post-commit
t@@ -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