for-each-ref: use skip_prefix() to avoid duplicate string comparison
[gitweb.git] / builtin / pack-objects.c
index 238b5021eb105007a42061d5f8febc455530da45..3eb86e0693b3f9adb6680645151f842dffa7a4f9 100644 (file)
@@ -812,6 +812,7 @@ static void write_pack_file(void)
                        fixup_pack_header_footer(fd, sha1, pack_tmp_name,
                                                 nr_written, sha1, offset);
                        close(fd);
+                       write_bitmap_index = 0;
                }
 
                if (!pack_to_stdout) {
@@ -2494,6 +2495,7 @@ static void get_object_list(int ac, const char **av)
                                if (get_sha1_hex(line + 10, sha1))
                                        die("not an SHA-1 '%s'", line + 10);
                                register_shallow(sha1);
+                               use_bitmap_index = 0;
                                continue;
                        }
                        die("not a rev '%s'", line);