openruko / gitmouth

SSH to Git Server for Openruko - Similar to heroku's SSH server
BSD 2-Clause "Simplified" License
19 stars 5 forks source link

"error in sideband demultiplexer" after pushing #7

Closed simonlopez closed 11 years ago

simonlopez commented 11 years ago

When pushing to openruko, I've got the following message at the end:

-----> Launching... done v 12 http://mmxmax.mymachine.me/ deployed to Openruko

fatal: The remote end hung up unexpectedly error: error in sideband demultiplexer To ssh://mymachine.me:12222/mmxmax.git 4b63e8c..5b840c2 master -> master error: failed to push some refs to 'ssh://z53.mymachine.me:12222/mmxmax.git'

Filirom1 commented 11 years ago

Indeed, this error is quite frequent.

I tried to solve it with this stackoverflow, but it didn't work http://stackoverflow.com/questions/9592908/error-in-sideband-demultiplexer-with-a-git-post-receive-hook

tombh commented 11 years ago

Looks like reading STDIN with `while read ...' in the post-receive hook (as well the pre-receive hook) fixes this. See https://github.com/openruko/codonhooks/commit/a17c4b49831e5fbe47e6373916915bbfb326be47