X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git.c;h=11544cdb4037715b1e9edc14689896d99d6e3284;hb=762c710b3673009f3ee7b2f4f9321b68d52fca72;hp=743ee57100ac49aca8d90892b1abec5f18eb18c1;hpb=eb2fc8f899a58eedc87e7e8ea0fdecdc2ba9f430;p=git.git diff --git a/git.c b/git.c index 743ee5710..11544cdb4 100644 --- a/git.c +++ b/git.c @@ -89,6 +89,9 @@ static int handle_options(const char ***argv, int *argc, int *envchanged) *envchanged = 1; } else if (!strcmp(cmd, "--no-replace-objects")) { read_replace_refs = 0; + setenv(NO_REPLACE_OBJECTS_ENVIRONMENT, "1", 1); + if (envchanged) + *envchanged = 1; } else if (!strcmp(cmd, "--git-dir")) { if (*argc < 2) { fprintf(stderr, "No directory given for --git-dir.\n" );