LUMIERA.clone/admin/git_hooks/post-commit
2007-08-12 14:51:33 +02:00

14 lines
425 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
user_email="$(git config user.email)"
git tag -s -f -m "signature generated by $user_email" "$user_email/$(git-symbolic-ref HEAD | cut -d/ -f 3-)_signature"
git push --all public
git push public "refs/tags/$user_email/*"