git-daemon-verify/git-http-backend-verify: validate bin and set PATH
commit8f940f2c633ed6449c2b8772de9532669b3a91b4
authorKyle J. McKay <mackyle@gmail.com>
Thu, 29 Jan 2015 17:29:09 +0000 (29 09:29 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 29 Jan 2015 17:29:09 +0000 (29 09:29 -0800)
treefe4eab1a9098b84a5fe81205fcb8d0eb659f7a6e
parente348778c4b7932434feb21b9eb7ec5a4696b36f1
git-daemon-verify/git-http-backend-verify: validate bin and set PATH

Make sure the the binary we will try to exec actually exists and is
executable.

Also make sure that the binary's directory is added to the front of
the $PATH so that any subcommands that are executed are actually
from the same Git version installation rather than somewhere else
that might happen to be in the PATH and are actually found in the
case where no Git installation is in the PATH.
bin/git-daemon-verify
bin/git-http-backend-verify