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
|
@ -18,7 +18,7 @@ import Common
|
|||
import qualified Git
|
||||
import qualified Git.Config
|
||||
import qualified Git.Construct
|
||||
import Git.SharedRepository
|
||||
import Git.ConfigTypes
|
||||
import Utility.DataUnits
|
||||
import Config.Cost
|
||||
import Types.UUID
|
||||
|
@ -84,6 +84,7 @@ data GitConfig = GitConfig
|
|||
, annexAddUnlocked :: Bool
|
||||
, coreSymlinks :: Bool
|
||||
, coreSharedRepository :: SharedRepository
|
||||
, receiveDenyCurrentBranch :: DenyCurrentBranch
|
||||
, gcryptId :: Maybe String
|
||||
, gpgCmd :: GpgCmd
|
||||
}
|
||||
|
@ -137,6 +138,7 @@ extractGitConfig r = GitConfig
|
|||
, annexAddUnlocked = getbool (annex "addunlocked") False
|
||||
, coreSymlinks = getbool "core.symlinks" True
|
||||
, coreSharedRepository = getSharedRepository r
|
||||
, receiveDenyCurrentBranch = getDenyCurrentBranch r
|
||||
, gcryptId = getmaybe "core.gcrypt-id"
|
||||
, gpgCmd = mkGpgCmd (getmaybe "gpg.program")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue