Added a post-update-annex hook, which is run after the git-annex branch is updated. Needed for git update-server-info.

See https://github.com/datalad/datalad/issues/1#issuecomment-84094406
This commit is contained in:
Joey Hess 2015-03-20 14:52:58 -04:00
parent dd35cf34a4
commit 798da6cf2e
4 changed files with 23 additions and 9 deletions

View file

@ -25,6 +25,9 @@ preCommitHook = Git.Hook "pre-commit" (mkHookScript "git annex pre-commit .")
preCommitAnnexHook :: Git.Hook
preCommitAnnexHook = Git.Hook "pre-commit-annex" ""
postUpdateAnnexHook :: Git.Hook
postUpdateAnnexHook = Git.Hook "post-update-annex" ""
mkHookScript :: String -> String
mkHookScript s = unlines
[ shebang_local