summaryrefslogtreecommitdiff
path: root/Annex/Hook.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/Hook.hs')
-rw-r--r--Annex/Hook.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Annex/Hook.hs b/Annex/Hook.hs
index a073c2598..b53914505 100644
--- a/Annex/Hook.hs
+++ b/Annex/Hook.hs
@@ -4,7 +4,7 @@
- not change, otherwise removing old hooks using an old version of
- the script would fail.
-
- - Copyright 2013-2014 Joey Hess <id@joeyh.name>
+ - Copyright 2013-2017 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU GPL version 3 or higher.
-}
@@ -22,6 +22,9 @@ import qualified Data.Map as M
preCommitHook :: Git.Hook
preCommitHook = Git.Hook "pre-commit" (mkHookScript "git annex pre-commit .")
+postReceiveHook :: Git.Hook
+postReceiveHook = Git.Hook "post-receive" (mkHookScript "git annex post-receive")
+
preCommitAnnexHook :: Git.Hook
preCommitAnnexHook = Git.Hook "pre-commit-annex" ""