diff options
author | Peter Jones <pjones@redhat.com> | 2017-06-28 10:27:58 -0400 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2017-07-01 13:59:17 +0200 |
commit | 559b90229c780663488788831bd06b92d469107f (patch) | |
tree | f76579574a74d12206019a2f62860a092293d693 /git/test/test_submodule.py | |
parent | aec58a9d386d4199374139cd1fc466826ac3d2cf (diff) | |
download | gitpython-559b90229c780663488788831bd06b92d469107f.tar.gz |
Maybe work around AppVeyor setting a bad email?
One of the submodule tests says:
Traceback (most recent call last):
File "C:\projects\gitpython\git\test\lib\helper.py", line 92, in wrapper
return func(self, path)
File "C:\projects\gitpython\git\test\test_submodule.py", line 706, in test_git_submodules_and_add_sm_with_new_commit
smm.git.commit(m="new file added")
File "C:\projects\gitpython\git\cmd.py", line 425, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "C:\projects\gitpython\git\cmd.py", line 877, in _call_process
return self.execute(call, **exec_kwargs)
File "C:\projects\gitpython\git\cmd.py", line 688, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git commit -m new file added
stderr: '
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'appveyor@APPVYR-WIN.(none)')'
Clearly this is failing because (none) isn't a valid TLD, but I figure
I'll try to set a fake value and see if that works around it.
Diffstat (limited to 'git/test/test_submodule.py')
-rw-r--r-- | git/test/test_submodule.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py index 9e79a72c..2da7071f 100644 --- a/git/test/test_submodule.py +++ b/git/test/test_submodule.py @@ -698,6 +698,9 @@ class TestSubmodule(TestBase): parent.index.commit("moved submodules") + with sm.config_writer() as writer: + writer.set_value('user.email', 'example@example.com') + writer.set_value('user.name', 'me') smm = sm.module() fp = osp.join(smm.working_tree_dir, 'empty-file') with open(fp, 'w'): |