Disable receive.denyNonFastForwards when setting up a gcrypt special remote
gcrypt needs to be able to fast-forward the master branch. If a git repository is set up with git init --shared --bare, it gets that set, and pushing to it will then fail, even when it's up-to-date.
This commit is contained in:
parent
0ddf4d3148
commit
1536ebfe47
3 changed files with 27 additions and 13 deletions
|
@ -177,3 +177,14 @@ fromFile r f = fromPipe r "git"
|
|||
, File f
|
||||
, Param "--list"
|
||||
]
|
||||
|
||||
{- Changes a git config setting in the specified config file.
|
||||
- (Creates the file if it does not already exist.) -}
|
||||
changeFile :: FilePath -> String -> String -> IO Bool
|
||||
changeFile f k v = boolSystem "git"
|
||||
[ Param "config"
|
||||
, Param "--file"
|
||||
, File f
|
||||
, Param k
|
||||
, Param v
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue