summaryrefslogtreecommitdiff
path: root/test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-08-23 13:41:32 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-08-23 13:41:32 -0400
commit20259c2955e408a72e0960207fc8be4cbeec2e21 (patch)
treea1d13c50a46f6d586ef38f08f5cf42105ef82096 /test.hs
parent203148363f459635b1be40b8c6ed376073230dda (diff)
Set EMAIL when running test suite so that git does not need to be configured first. Closes: #638998
Diffstat (limited to 'test.hs')
-rw-r--r--test.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test.hs b/test.hs
index e4e1fb131..4d751a707 100644
--- a/test.hs
+++ b/test.hs
@@ -646,6 +646,9 @@ prepare = do
p <- getEnvDefault "PATH" ""
setEnv "PATH" (cwd ++ ":" ++ p) True
setEnv "TOPDIR" cwd True
+ -- Avoid git complaining if it cannot determine the user's email
+ -- address.
+ setEnv "EMAIL" "git-annex test <test@example.com>" True
changeToTmpDir :: FilePath -> IO ()
changeToTmpDir t = do