summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2017-11-03 05:43:28 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2017-11-02 21:43:28 -0700
commitbd7d61325fe0ea4a0cd95869ccec20e1eef55c41 (patch)
tree3281abdc2e1ec8e5ae78fc0247e55e1f1e3c98f6
parent0f896e921f7aeb8fae14fe442996154aef60e8e9 (diff)
downloadspack-bd7d61325fe0ea4a0cd95869ccec20e1eef55c41.tar.gz
spack-bd7d61325fe0ea4a0cd95869ccec20e1eef55c41.tar.bz2
spack-bd7d61325fe0ea4a0cd95869ccec20e1eef55c41.tar.xz
spack-bd7d61325fe0ea4a0cd95869ccec20e1eef55c41.zip
Configure user for mock Git repository (#6128)
If user.useConfigOnly is set globally and no name or e-mail is configured, the git_fetch tests fail.
-rw-r--r--lib/spack/spack/test/conftest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/test/conftest.py b/lib/spack/spack/test/conftest.py
index 82cdd848f3..ed2b6d8e4d 100644
--- a/lib/spack/spack/test/conftest.py
+++ b/lib/spack/spack/test/conftest.py
@@ -463,6 +463,8 @@ def mock_git_repository(tmpdir_factory):
# Initialize the repository
with repodir.as_cwd():
git('init')
+ git('config', 'user.name', 'Spack')
+ git('config', 'user.email', 'spack@spack.io')
url = 'file://' + str(repodir)
# r0 is just the first commit