]> git.ipfire.org Git - thirdparty/git.git/blobdiff - environment.c
Start the 2.46 cycle
[thirdparty/git.git] / environment.c
index 0a9f5db407d19a8f7ded4b464bc1e47482d119de..a73ba9c12caed24dd724144890fffd0f116b1c38 100644 (file)
@@ -207,6 +207,9 @@ void setup_git_env(const char *git_dir)
        shallow_file = getenv(GIT_SHALLOW_FILE_ENVIRONMENT);
        if (shallow_file)
                set_alternate_shallow_file(the_repository, shallow_file, 0);
+
+       if (git_env_bool(NO_LAZY_FETCH_ENVIRONMENT, 0))
+               fetch_if_missing = 0;
 }
 
 int is_bare_repository(void)