X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git.c;h=11544cdb4037715b1e9edc14689896d99d6e3284;hb=bf3c523c3fd641609adcef67dcec47a43a6abd60;hp=743ee57100ac49aca8d90892b1abec5f18eb18c1;hpb=1a02a85d63f280ffaec6977ed2365be92cb80287;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" );