openshift/crankcase — pull request #129 by ironcladlou (2012-06-14 21:18:53+00:00)
Title: Prevent passing binary on stdin to pre-receive hook

The pre-receive hook expects text on stdin for commit processing. In the
context of a restore, the tarball being restored is on stdin. Make sure
to feed /dev/null on stdin when calling the pre-receive hook manually,
otherwise it will choke and die, corrupting the tarball in the process.