Merge branch 'nd/no-extern'
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index fc7d15d549e49113fba73ee98161fafd3fd10a56..cc0fad93e0ac38459b981b0700260e5832e30cc9 100644 (file)
--- a/git.c
+++ b/git.c
@@ -164,7 +164,7 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
                        if (envchanged)
                                *envchanged = 1;
                } else if (!strcmp(cmd, "--no-replace-objects")) {
-                       check_replace_refs = 0;
+                       read_replace_refs = 0;
                        setenv(NO_REPLACE_OBJECTS_ENVIRONMENT, "1", 1);
                        if (envchanged)
                                *envchanged = 1;