From 77a0ca5e351e1ee62f19f8ab695a2e6e627c180b Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Mon, 18 Jun 2007 13:09:37 +0200 Subject: [PATCH] my post-commit script which gpg signs commits and then pushes them to the public server use 'ln -s ../../admin/git_hooks/post-commit .git/hooks/post-commit' to use it --- admin/git_hooks/post-commit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/git_hooks/post-commit b/admin/git_hooks/post-commit index 8be6f34ad..413bc0431 100755 --- a/admin/git_hooks/post-commit +++ b/admin/git_hooks/post-commit @@ -5,4 +5,8 @@ # # To enable this hook, make this file executable. -: Nothing +# see wiki/index.html#GitNotes%20GitAliases for information + +git sign "$(git-symbolic-ref HEAD | cut -d/ -f 3-)_signature" +git publish +