diff options
author | Jeff King <peff@peff.net> | 2015-02-17 03:37:35 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-17 13:15:07 -0800 |
commit | 94bc83c5930c8c73fb0106b629123e2413b371af (patch) | |
tree | a9fe93e8cc56a9673a05aed71890267d979cdca8 /http-fetch.c | |
parent | 3c84ac86fc896c108b789b8eb26b169cc0e8088a (diff) | |
download | git-94bc83c5930c8c73fb0106b629123e2413b371af.tar.gz |
git_connect: let user override virtual-host we send to daemon
When we connect to a git-daemon at a given host and port, we
actually send the string "localhost:9418" to the other side,
which allows it to do virtual-hosting lookups. For testing
and debugging, we'd like to be able to send arbitrary
strings, rather than the hostname we actually connected to.
Using "insteadOf" config does not work for this purpose, as
the hostname determination happens at a very low level,
right before we feed the hostname to our lookup routines.
You could use /etc/hosts or similar to get around this, but
we cannot do that portably from our test suite.
Instead, this patch provides an environment variable that
can be used to send an arbitrary string.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-fetch.c')
0 files changed, 0 insertions, 0 deletions