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

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
git-annex (3.20110820) UNRELEASED; urgency=low
* Set EMAIL when running test suite so that git does not need to be
configured first. Closes: #638998
-- Joey Hess <joeyh@debian.org> Tue, 23 Aug 2011 13:41:01 -0400
git-annex (3.20110819) unstable; urgency=low
* Now "git annex init" only has to be run once, when a git repository

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