post-recive hook to make updateInstead work in direct mode and adjusted branches
* Added post-recieve hook, which makes updateInstead work with direct mode and adjusted branches. * init: Set up the post-receive hook. This commit was sponsored by Fernando Jimenez on Patreon.
This commit is contained in:
parent
4594bece40
commit
d074532aff
12 changed files with 138 additions and 11 deletions
|
@ -83,8 +83,9 @@ initialize' mversion = do
|
|||
checkLockSupport
|
||||
checkFifoSupport
|
||||
checkCrippledFileSystem
|
||||
unlessM isBareRepo $
|
||||
unlessM isBareRepo $ do
|
||||
hookWrite preCommitHook
|
||||
hookWrite postReceiveHook
|
||||
setDifferences
|
||||
unlessM (isJust <$> getVersion) $
|
||||
setVersion (fromMaybe defaultVersion mversion)
|
||||
|
@ -114,6 +115,7 @@ initialize' mversion = do
|
|||
uninitialize :: Annex ()
|
||||
uninitialize = do
|
||||
hookUnWrite preCommitHook
|
||||
hookUnWrite postReceiveHook
|
||||
removeRepoUUID
|
||||
removeVersion
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue