diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-03-20 14:52:58 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-03-20 14:52:58 -0400 |
commit | 798da6cf2e80c278c72dc0faef7fb0a14b19d23f (patch) | |
tree | c42ea58309319e258420c7842da323cdeb935b28 /Annex/Hook.hs | |
parent | dd35cf34a44d84cf38ad01f44dabf413b11ca14e (diff) |
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
Diffstat (limited to 'Annex/Hook.hs')
-rw-r--r-- | Annex/Hook.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Annex/Hook.hs b/Annex/Hook.hs index 253c77a603..1c17e03b4a 100644 --- a/Annex/Hook.hs +++ b/Annex/Hook.hs @@ -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 |