X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=environment.c;h=5171d9f9a4a30054983638e9e19e61f422724373;hb=6f53c3b21e3899716caccc2f88a1186ca7fa0f60;hp=5de683784039f20b55f58ef36cb04a11f6a10610;hpb=6e4ece61ff9c4c0a0c7eac43fca74ca1b5548e98;p=git.git diff --git a/environment.c b/environment.c index 5de683784..5171d9f9a 100644 --- a/environment.c +++ b/environment.c @@ -49,6 +49,7 @@ enum push_default_type push_default = PUSH_DEFAULT_MATCHING; #define OBJECT_CREATION_MODE OBJECT_CREATION_USES_HARDLINKS #endif enum object_creation_mode object_creation_mode = OBJECT_CREATION_MODE; +char *notes_ref_name; int grafts_replace_parents = 1; /* Parallel index stat data preload? */ @@ -83,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)