mirror of
https://github.com/git/git.git
synced 2024-11-18 19:13:58 +01:00
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>
This commit is contained in:
parent
ea0fc3b417
commit
526f108a27
@ -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)
|
||||
|
@ -33,6 +33,11 @@ struct check_connected_options {
|
||||
|
||||
/* If non-zero, show progress as we traverse the objects. */
|
||||
int progress;
|
||||
|
||||
/*
|
||||
* Insert these variables into the environment of the child process.
|
||||
*/
|
||||
const char **env;
|
||||
};
|
||||
|
||||
#define CHECK_CONNECTED_INIT { 0 }
|
||||
|
Loading…
Reference in New Issue
Block a user