LUMIERA.clone/admin/git_hooks/post-commit
Christian Thaeter 77a0ca5e35 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
2007-06-18 13:09:37 +02:00

12 lines
278 B
Bash
Executable file

#!/bin/sh
#
# An example hook script that is called after a successful
# commit is made.
#
# To enable this hook, make this file executable.
# see wiki/index.html#GitNotes%20GitAliases for information
git sign "$(git-symbolic-ref HEAD | cut -d/ -f 3-)_signature"
git publish