Set EMAIL when running test suite so that git does not need to be configured first. Closes: #638998

This commit is contained in:
Joey Hess 2011-08-23 13:41:32 -04:00
parent 203148363f
commit 20259c2955
2 changed files with 10 additions and 0 deletions

View file

@ -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