基本上,我运行的是运行数小时的大型python脚本
我经常使用Commit对象,比如repo.commit(some_valid_hexsah)
我一次又一次地使用它,其间做了很多事情
不知什么原因,一段时间后,我得到:
File "C:\Users\amirelm\AppData\Local\Continuum\anaconda2\lib\site-packages\gitpython-3.0.1-py2.7.egg\git\repo\base.py", line 482, in commit
return self.rev_parse(text_type(rev) + "^0")
File "C:\Users\amirelm\AppData\Local\Continuum\anaconda2\lib\site-packages\gitpython-3.0.1-py2.7.egg\git\repo\fun.py", line 213, in rev_parse
obj = name_to_object(repo, rev[:start])
File "C:\Users\amirelm\AppData\Local\Continuum\anaconda2\lib\site-packages\gitpython-3.0.1-py2.7.egg\git\repo\fun.py", line 150, in name_to_object
return Object.new_from_sha(repo, hex_to_bin(hexsha))
File "C:\Users\amirelm\AppData\Local\Continuum\anaconda2\lib\site-packages\gitpython-3.0.1-py2.7.egg\git\objects\base.py", line 64, in new_from_sha
oinfo = repo.odb.info(sha1)
File "C:\Users\amirelm\AppData\Local\Continuum\anaconda2\lib\site-packages\gitpython-3.0.1-py2.7.egg\git\db.py", line 37, in info
hexsha, typename, size = self._git.get_object_header(bin_to_hex(sha))
File "C:\Users\amirelm\AppData\Local\Continuum\anaconda2\lib\site-packages\gitpython-3.0.1-py2.7.egg\git\cmd.py", line 1077, in get_object_header
return self.__get_object_header(cmd, ref)
File "C:\Users\amirelm\AppData\Local\Continuum\anaconda2\lib\site-packages\gitpython-3.0.1-py2.7.egg\git\cmd.py", line 1065, in __get_object_header
cmd.stdin.flush()
IOError: [Errno 22] Invalid argument
我不知道为什么会发生这种情况,如果有人知道如何解释这个错误或经历类似的事情,我将非常感谢您的帮助
谢谢
目前没有回答
相关问题 更多 >
编程相关推荐