#include "replace-object.h"
#include "upload-pack.h"
#include "serve.h"
+#include "commit.h"
++#include "environment.h"
static const char * const upload_pack_usage[] = {
N_("git-upload-pack [--[no-]strict] [--timeout=<n>] [--stateless-rpc]\n"
packet_trace_identity("upload-pack");
disable_replace_refs();
- /* TODO: This should use NO_LAZY_FETCH_ENVIRONMENT */
- xsetenv("GIT_NO_LAZY_FETCH", "1", 0);
+ save_commit_buffer = 0;
++ xsetenv(NO_LAZY_FETCH_ENVIRONMENT, "1", 0);
argc = parse_options(argc, argv, prefix, options, upload_pack_usage, 0);
#include "transport.h"
#include "strvec.h"
#include "packfile.h"
++#include "environment.h"
struct promisor_remote_config {
struct promisor_remote *promisors;
int i;
FILE *child_in;
- /* TODO: This should use NO_LAZY_FETCH_ENVIRONMENT */
- if (git_env_bool("GIT_NO_LAZY_FETCH", 0)) {
++ if (git_env_bool(NO_LAZY_FETCH_ENVIRONMENT, 0)) {
+ static int warning_shown;
+ if (!warning_shown) {
+ warning_shown = 1;
+ warning(_("lazy fetching disabled; some objects may not be available"));
+ }
+ return -1;
+ }
+
child.git_cmd = 1;
child.in = -1;
if (repo != the_repository)