on master help sign in
Do not rely on systemwide git config
82aed77Ariel Nunez
lib/selftest/src/Obelisk/SelfTest.hs+6−2
@@ -54,11 +54,15 @@ doubleQuotes s = "\"" <> s <> "\""
54
54
55commit :: Text -> Sh ()
55commit :: Text -> Sh ()
56commit msg = void $ run "git"
56commit msg = void $ run "git"
57+ [ "-c"
58+ , "user.name=Obelisk Selftest"
59+ , "-c"
60+ , "user.email=noreply@example.com"
57− [ "commit"
61+ , "commit"
58 , "--no-gpg-sign"
62 , "--no-gpg-sign"
59 , "--allow-empty"
63 , "--allow-empty"
60 , "-m"
64 , "-m"
61− , doubleQuotes msg
65+ , msg
62 ]
66 ]
63
67
64-- TODO replace Void and stop using loosely typed synchronous exceptions
68-- TODO replace Void and stop using loosely typed synchronous exceptions