mirror of
https://github.com/bitbaum/dotfiles.git
synced 2026-12-04 04:37:15 +01:00
git push opens the SSH connection to github.com before running the pre-push hook, then leaves it fully idle for the hook's entire duration. Under heavy concurrent machine load, hooks routinely took long enough that GitHub's idle-connection timeout closed the SSH session mid-hook — the push then silently failed to transfer after printing "Safe to push," with only a stray "Connection to github.com closed by remote host." to explain it. Reproduced 4x in one session before diagnosing via GIT_TRACE=1. ServerAliveInterval/CountMax keep the connection alive during that idle window. Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>