diff options
author | Joey Hess <joey@kitenet.net> | 2011-08-23 13:41:32 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-08-23 13:41:32 -0400 |
commit | 20259c2955e408a72e0960207fc8be4cbeec2e21 (patch) | |
tree | a1d13c50a46f6d586ef38f08f5cf42105ef82096 /test.hs | |
parent | 203148363f459635b1be40b8c6ed376073230dda (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.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |