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!!!