X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=connect.c;h=beaff987c7bc36096d09b2557f5208c5606ce2dd;hb=9b0aa728705439ca4b4e7ec845f79f8487059320;hp=a37cf6af0428023d2d3ef01ab2e04fc462981af4;hpb=6914c661c3652e22fc2971bfefd36fddad56233a;p=git.git diff --git a/connect.c b/connect.c index a37cf6af0..beaff987c 100644 --- a/connect.c +++ b/connect.c @@ -607,18 +607,8 @@ struct child_process *git_connect(int fd[2], const char *url_orig, *arg++ = host; } else { - /* remove these from the environment */ - const char *env[] = { - ALTERNATE_DB_ENVIRONMENT, - DB_ENVIRONMENT, - GIT_DIR_ENVIRONMENT, - GIT_WORK_TREE_ENVIRONMENT, - GRAFT_ENVIRONMENT, - INDEX_ENVIRONMENT, - NO_REPLACE_OBJECTS_ENVIRONMENT, - NULL - }; - conn->env = env; + /* remove repo-local variables from the environment */ + conn->env = local_repo_env; conn->use_shell = 1; } *arg++ = cmd.buf;