X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=environment.c;h=5171d9f9a4a30054983638e9e19e61f422724373;hb=55b4e9e43227632dd372f916c08dca6e26118af5;hp=571ab56b7e58e2db9e1182de7e78fd2d7596e872;hpb=39add7a36feca434ba85267cb76e4fd69bcdc13a;p=git.git diff --git a/environment.c b/environment.c index 571ab56b7..5171d9f9a 100644 --- a/environment.c +++ b/environment.c @@ -84,6 +84,8 @@ static void setup_git_env(void) git_graft_file = getenv(GRAFT_ENVIRONMENT); if (!git_graft_file) git_graft_file = git_pathdup("info/grafts"); + if (getenv(NO_REPLACE_OBJECTS_ENVIRONMENT)) + read_replace_refs = 0; } int is_bare_repository(void)