diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-05-02 11:21:24 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-05-05 17:18:48 +0200 |
commit | 76da032c12b377d27150389a6c806d89234c545a (patch) | |
tree | 11a4d1f0bb2969e7c9128c629996d9e478ba1671 /git-hooks/git_post_commit_hook |
initial commit
Diffstat (limited to 'git-hooks/git_post_commit_hook')
-rwxr-xr-x | git-hooks/git_post_commit_hook | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/git-hooks/git_post_commit_hook b/git-hooks/git_post_commit_hook new file mode 100755 index 0000000..cc47980 --- /dev/null +++ b/git-hooks/git_post_commit_hook @@ -0,0 +1,19 @@ +#! /bin/sh +# Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# +# Contact: Nokia Corporation <info@qt.nokia.com> +# +# You may use this file under the terms of the 3-clause BSD license. +# See the file LICENSE from this package for details. +# + +# Usage: in every repository you want to have checked: +# cd .git/hooks +# ln -s /path/to/git_post_commit_hook post-commit +# + +sha1=${1-HEAD} # just for debugging +GIT_PUSH=${GIT_PUSH+$GIT_PUSH,}wip # this check makes totally no sense locally +export GIT_PUSH +exec sanitize-commit $sha1 strict >&2 |