Skip to content

Commit 559b902

Browse files
vathpelaByron
authored andcommitted
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 "[email protected]" 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.
1 parent aec58a9 commit 559b902

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git/test/test_submodule.py

+3
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,9 @@ def test_git_submodules_and_add_sm_with_new_commit(self, rwdir):
698698

699699
parent.index.commit("moved submodules")
700700

701+
with sm.config_writer() as writer:
702+
writer.set_value('user.email', '[email protected]')
703+
writer.set_value('user.name', 'me')
701704
smm = sm.module()
702705
fp = osp.join(smm.working_tree_dir, 'empty-file')
703706
with open(fp, 'w'):

0 commit comments

Comments
 (0)