diff options
author | Jeff King <peff@peff.net> | 2016-10-03 22:49:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-10 22:54:02 +0200 |
commit | 526f108a271b331af9ae92796215e560e5ec4677 (patch) | |
tree | 2d8dbf7653b02509fc22c9f0e7568c67812cea43 /connected.c | |
parent | alternates: use fspathcmp to detect duplicates (diff) | |
download | git-526f108a271b331af9ae92796215e560e5ec4677.tar.xz git-526f108a271b331af9ae92796215e560e5ec4677.zip |
check_connected: accept an env argument
This lets callers influence the environment seen by
rev-list, which will be useful when we start providing
quarantined objects.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'connected.c')
-rw-r--r-- | connected.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/connected.c b/connected.c index 8e3e4b1dc1..136c2ac168 100644 --- a/connected.c +++ b/connected.c @@ -63,6 +63,7 @@ int check_connected(sha1_iterate_fn fn, void *cb_data, _("Checking connectivity")); rev_list.git_cmd = 1; + rev_list.env = opt->env; rev_list.in = -1; rev_list.no_stdout = 1; if (opt->err_fd) |