Merge branch 'jn/maint-setup-fix'
[gitweb.git] / builtin / index-pack.c
index 89a1f12d615bb997bd992abba61da712def3ea44..96333d48cd49fcfba5707530440f6f6848a2acf5 100644 (file)
@@ -885,6 +885,8 @@ int cmd_index_pack(int argc, const char **argv, const char *prefix)
        if (argc == 2 && !strcmp(argv[1], "-h"))
                usage(index_pack_usage);
 
+       read_replace_refs = 0;
+
        prefix = setup_git_directory_gently(&nongit);
        git_config(git_index_pack_config, NULL);
        if (prefix && chdir(prefix))