当我尝试
时git push origin master
我的文件到git,我得到一长串错误,说:
追踪(最近一次呼叫最后一次):
文件" hooks / gl-pre-git",第22行,
os.environ['GL_REPO'], sys.argv[1] == 'W')
文件" /usr/lib/python3.2/xmlrpc/client.py",第1076行,致电
return self.__send(self.__name, args)
File "/usr/lib/python3.2/xmlrpc/client.py", line 1403, in __request
verbose=self.__verbose
File "/usr/lib/python3.2/xmlrpc/client.py", line 1117, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python3.2/xmlrpc/client.py", line 1128, in single_request
http_conn = self.send_request(host, handler, request_body, verbose)
File "/usr/lib/python3.2/xmlrpc/client.py", line 1240, in send_request
self.send_content(connection, request_body)
File "/usr/lib/python3.2/xmlrpc/client.py", line 1270, in send_content
connection.endheaders(request_body)
File "/usr/lib/python3.2/http/client.py", line 963, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.2/http/client.py", line 808, in _send_output
self.send(msg)
File "/usr/lib/python3.2/http/client.py", line 746, in send
self.connect()
File "/usr/lib/python3.2/http/client.py", line 724, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.2/socket.py", line 404, in create_connection
raise err
File "/usr/lib/python3.2/socket.py", line 395, in create_connection
sock.connect(sa)
socket.error: [Errno 111] Connection refused
gl-pre-git hook failed (256)
fatal: The remote end hung up unexpectedly
有谁知道为什么会这样?我会尝试删除我的git存储库并克隆一个新的存储库我想但我会看到事情的进展!
答案 0 :(得分:1)
GL_REPO意味着在repo 服务器上使用了gitolite 。如果您还没有自己在repo服务器上设置gitolite,则需要联系任何已设置它的人并通知他们问题以便修复它。
因此,您无法在git 客户端端执行任何操作。它需要在服务器上修复。
答案 1 :(得分:0)
检查你的git钩子。 (.git / hooks / gl-pre-git)看起来像钩子pre-git钩子的错误。