2

I'm using Git control version system through Eclipse (Egit plugin).

I've configured the post-receive-email hook to trigger an email every time I push to the remote repository. The hook is working as expected (I got a new email on every change), but I have to "push" twice.

When I make the first push, it always fails with a timeout error

 ssh://user@server/path/to/repo.git: Read timed out after 30.000 ms

Then, with the second push, everything goes well, the remote repository is updated and I receive the email.

So, I want to know if there is a way to fix this behaviour, if I have to add something to hook configuration, or change something in Eclipse. I dont want to push my changes twice everytime.

Hope you can help me, thanks!!!

4

1 回答 1

1

转到 Windows -> 团队 -> 首选项 ->(在“类型过滤器文本”中搜索 ->)GIT。

你得到以下窗口

EGIT远程连接超时配置

更改或增加您的时间,以便在推送到上游需要时间时您可能不会遇到麻烦。

此超时问题与 EGIT 配置完全相关,您不必弄乱 GIT 挂钩。

我希望你的问题能通过这个我的朋友得到解决

于 2015-09-11T20:59:59.257 回答