diff options
author | Joey Hess <joey@kitenet.net> | 2012-09-06 15:06:48 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-09-06 15:06:48 -0400 |
commit | d9d16622b99d9128a5a33d195ed5dc9e3bfd01b7 (patch) | |
tree | fc65f484d260b159fa08e12930df35acbecaa54b /test.hs | |
parent | 566c6f22bcaaba3e4285901c8f82fa008c59d6ea (diff) |
test: Set a lot of git environment variables so testing works in strange environments that normally need git config to set names, etc. Closes: #682351 Thanks, gregor herrmann
Diffstat (limited to 'test.hs')
-rw-r--r-- | test.hs | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -882,8 +882,11 @@ prepare = do 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 + -- address, or exploding if it doesn't know the user's name. + setEnv "GIT_AUTHOR_EMAIL" "test@example.com" True + setEnv "GIT_AUTHOR_NAME" "git-annex test" True + setEnv "GIT_COMMITTER_EMAIL" "test@example.com" True + setEnv "GIT_COMMITTER_NAME" "git-annex test" True changeToTmpDir :: FilePath -> IO () changeToTmpDir t = do |