I need to check if the installed version of git on a number of systems is built against gnutls or openssl. A method to do this can be found here but relies on having binary git-http-fetch installed against which "ldd git-http-fetch" can be run. For example, I see this on Ubuntu 16.04 with git 2.7.4. I can provide the argument http-fetch to git to access the same function, but this doesn't help since I want to use ldd to probe which shared objects will be linked. I could simply run a git transaction with strace and then grep for libraries actually loaded, but this requires a test endpoint and seems unwieldy.
How can I install this additional binary? Alternatively, how can I adapt the instructions from the previous question in the absence of this binary?