]> git.madduck.net Git - code/gsc.git/blobdiff - gsc-post-receive

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

remove/reserve unused ssh_opts parameter
[code/gsc.git] / gsc-post-receive
index ff07fde9f4033605a54cd34d777b2c22bb69610e..be377a2769dfcb72b4d5c24821e2cbc8e0f55ff4 100755 (executable)
@@ -28,11 +28,12 @@ poke_host() {
     -o IdentityFile="$TEMPDIR/poke-key" \
     -o StrictHostKeyChecking=yes \
     -o UserKnownHostsFile=$TEMPDIR/ssh_known_hosts \
-    $2 $1 </dev/null | sed 's,^,    ,' >&2
+    $1 </dev/null | sed 's,^,    ,' >&2
 
   echo >&2 "*** Done poking $1."
 }
 
-while read target ssh_opts; do
-  poke_host $target $ssh_opts
+while read target remainder; do
+  # reserve the use of $remainder for now
+  poke_host $target
 done < $TEMPDIR/pokehosts