parse-options: multi-word argh should use dash to separate words
[gitweb.git] / upload-pack.c
index a5c50e4ce0cf24a9fad7d04e04e05e576278d353..286a9ed3ea960d07c267f5e2992e63589361f5e9 100644 (file)
@@ -251,6 +251,7 @@ static void create_pack_file(void)
                error("git upload-pack: git-pack-objects died with error.");
                goto fail;
        }
+
        /* flush the data */
        if (0 <= buffered) {
                data[0] = buffered;
@@ -799,7 +800,7 @@ int main(int argc, char **argv)
 
        packet_trace_identity("upload-pack");
        git_extract_argv0_path(argv[0]);
-       read_replace_refs = 0;
+       check_replace_refs = 0;
 
        for (i = 1; i < argc; i++) {
                char *arg = argv[i];