Git push timeout when using post-receive-email hook

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.

  • How can I view the history of a single branch in EGit for eclipse
  • How stable is the git plugin for eclipse?
  • Issue while trying to open a Maven project via Git in Eclipse Luna
  • Eclipse git pushes all branches instead of the current one only
  • How can I do the equivalent of git rebase -i HEAD~2 in eGit?
  • How do I create a remote git repository in EGit and link it to an existing Eclipse project?
  • 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!!!

  • Stage hunk non-interactively in git
  • What can I do with Git corruption due to a missing object?
  • Git server allowing pull and push without private key
  • BitBucket: how to track a repo's branches in its Wiki repo?
  • Maven release: avoid checking out the whole branch
  • Git - find commit when file was created
  • One Solution collect form web for “Git push timeout when using post-receive-email hook”

    Goto Windows -> Team -> Preferences -> (in the ‘type filter text’ search for -> ) GIT.

    You get the following window

    EGIT Remote Connection Timeout Configuration

    Change or increase you time so that you might not have trouble when the Push to Upstream takes time.

    This timeout issue is completely related to the EGIT configuration, you don’t have to mess with the GIT hooks.

    I hope your problem will be resolved with this my friend

    Git Baby is a git and github fan, let's start git clone.