test: Set git user name and email in case git can't guess values.
This commit is contained in:
parent
4a3a80f432
commit
82bc10d5ea
3 changed files with 6 additions and 0 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -3,6 +3,7 @@ git-annex (0.21) UNRELEASED; urgency=low
|
||||||
* test: Don't rely on chmod -R working.
|
* test: Don't rely on chmod -R working.
|
||||||
* unannex: Fix recently introduced bug when attempting to unannex more
|
* unannex: Fix recently introduced bug when attempting to unannex more
|
||||||
than one file at a time.
|
than one file at a time.
|
||||||
|
* test: Set git user name and email in case git can't guess values.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Wed, 09 Feb 2011 00:12:11 -0400
|
-- Joey Hess <joeyh@debian.org> Wed, 09 Feb 2011 00:12:11 -0400
|
||||||
|
|
||||||
|
|
|
@ -46,3 +46,5 @@ After doing this, you may fix the identity used for this commit with:
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
I guess it also depends a bit on how git figures out who it is is committing and how the machine in question is configured with hostnames and domain names.
|
I guess it also depends a bit on how git figures out who it is is committing and how the machine in question is configured with hostnames and domain names.
|
||||||
|
|
||||||
|
> Fixed that. [[done]] --[[Joey]]
|
||||||
|
|
3
test.hs
3
test.hs
|
@ -508,6 +508,9 @@ setuprepo dir = do
|
||||||
cleanup dir
|
cleanup dir
|
||||||
ensuretmpdir
|
ensuretmpdir
|
||||||
Utility.boolSystem "git" ["init", "-q", dir] @? "git init failed"
|
Utility.boolSystem "git" ["init", "-q", dir] @? "git init failed"
|
||||||
|
indir dir $ do
|
||||||
|
Utility.boolSystem "git" ["config", "user.name", "Test User"] @? "git config failed"
|
||||||
|
Utility.boolSystem "git" ["config", "user.email", "test@example.com"] @? "git config failed"
|
||||||
return dir
|
return dir
|
||||||
|
|
||||||
copyrepo :: FilePath -> FilePath -> IO FilePath
|
copyrepo :: FilePath -> FilePath -> IO FilePath
|
||||||
|
|
Loading…
Reference in a new issue