0

当我尝试

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 存储库并克隆一个新的,但我会看看情况如何!

4

2 回答 2

1

GL_REPO 意味着 gitolite 正在 repo服务器上使用。如果您自己没有在 repo 服务器上设置 gitolite,您需要联系设置它的人并通知他们问题以解决问题。

因此,您在 git客户端上无能为力。它需要在服务器上修复。

于 2012-11-15T20:02:35.423 回答
0

检查你的 git 钩子。(.git/hooks/gl-pre-git) 看起来像一个钩子 pre-git 钩子的错误。

于 2012-11-15T19:29:13.750 回答