I was having trouble getting the hook to work. It turns out my systems (running centos) didn't have socat installed. It did have netcat so I changed the line to
echo "${DATA}\n" | nc ${SERVER} ${PORT} &
I'm new to both netcat and socat but my impression is that netcat is more widely used so maybe at least have an option to use nc if socat isn't found.
P.S.
In newer versions of gitolite, the command to rerun setup is gitolite setup, not gl-setup (this caused me a few headaches)
I was having trouble getting the hook to work. It turns out my systems (running centos) didn't have socat installed. It did have netcat so I changed the line to
I'm new to both netcat and socat but my impression is that netcat is more widely used so maybe at least have an option to use
nc
ifsocat
isn't found.P.S. In newer versions of gitolite, the command to rerun setup is
gitolite setup
, notgl-setup
(this caused me a few headaches)