on master help sign in
Merge pull request #611 from obsidiansystems/an-virgin-git

Do not rely on systemwide git config

commitbdc2aa4a94f41dde248dfdf214fda6fd9b0e118a authorElliot Cameron <3noch@users.noreply.github.com> dateTue 7 Jan 2020, 16:18 (7 years ago) parentf2637433991d97
1 file changed+6−5
lib/selftest/src/Obelisk/SelfTest.hs+6−5
lib/selftest/src/Obelisk/SelfTest.hs+6−5
@@ -49,16 +49,17 @@ data ObRunState
4949cp :: FilePath
5050cp = $(staticWhich "cp")
5151
52−doubleQuotes :: (IsString a, Semigroup a) => a -> a
53−doubleQuotes s = "\"" <> s <> "\""
54−
5552commit :: Text -> Sh ()
5653commit msg = void $ run "git"
57− [ "commit"
54+ [ "-c"
55+ , "user.name=Obelisk Selftest"
56+ , "-c"
57+ , "user.email=noreply@example.com"
58+ , "commit"
5859 , "--no-gpg-sign"
5960 , "--allow-empty"
6061 , "-m"
61− , doubleQuotes msg
62+ , msg
6263 ]
6364
6465-- TODO replace Void and stop using loosely typed synchronous exceptions