From da2a94862d24edf7f63e59c9797c054db556a53a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 1 Oct 2013 15:16:20 -0400 Subject: 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. --- Git/Config.hs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Git') diff --git a/Git/Config.hs b/Git/Config.hs index db795b7a7..a41712add 100644 --- a/Git/Config.hs +++ b/Git/Config.hs @@ -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 + ] -- cgit v1.2.3