hbons / sparkleshare-git-hook

This Git hook sends update messages to a notification server, so that manual git pushes to a repository also will be noticed by SparkleShare clients.
Other
12 stars 5 forks source link

socat vs. netcat #3

Open SatGarcia opened 10 years ago

SatGarcia commented 10 years ago

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)

hbons commented 10 years ago

are there any stats available on netcat vs. socat? detecting and using the correct one seems like a good idea to me.