summaryrefslogtreecommitdiff
path: root/Annex/Hook.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-03-20 14:52:58 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-03-20 14:52:58 -0400
commit9cd0833c28e4e8f9d4f45b3913e7540bdbeacb91 (patch)
tree7bd7442a613311a0b442b06208912d10fcc5f4e4 /Annex/Hook.hs
parent6d9ef07751656dfd996ff283570054586469bc99 (diff)
Added a post-update-annex hook, which is run after the git-annex branch is updated. Needed for git update-server-info.
Diffstat (limited to 'Annex/Hook.hs')
-rw-r--r--Annex/Hook.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Annex/Hook.hs b/Annex/Hook.hs
index 253c77a60..1c17e03b4 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