From 559b90229c780663488788831bd06b92d469107f Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 28 Jun 2017 10:27:58 -0400 Subject: 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 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. --- git/test/test_submodule.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git/test/test_submodule.py') 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'): -- cgit v1.2.1