diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-07-29 21:20:34 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-07-29 21:20:34 +0200 |
commit | 195061fcffda8201ff80150f82ba7ee7fafaf793 (patch) | |
tree | 0bdc52cf7538942fa79bda4dfd3e1601cc8a17f3 /git/hooks/pre-commit | |
parent | b75fcd142b519865715be84315fc7517c0cb6247 (diff) |
Don't miss syntax check on initial commit
Diffstat (limited to 'git/hooks/pre-commit')
-rwxr-xr-x | git/hooks/pre-commit | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git/hooks/pre-commit b/git/hooks/pre-commit index cd031c3..8e758e8 100755 --- a/git/hooks/pre-commit +++ b/git/hooks/pre-commit @@ -27,7 +27,6 @@ debug = True def main(): ret = 0 - zero = '0000000000000000000000000000000000000000' try: os.environ['GIT_DIR'] @@ -37,7 +36,7 @@ def main(): rev = 'HEAD' if not git.verify_rev(rev): - rev=zero + rev=None for old_mode, new_mode, old_sha, new_sha, status, name in git.diff_cached(rev): if debug: |