is_ntfs_dotgit: use a size_t for traversing string
[gitweb.git] / builtin / pack-objects.c
index 0fe35d1b5aebd74116d66d5414bdabf19baf7d97..50e01aa80ec7f56b32d47e841e1548c174501bc2 100644 (file)
@@ -2717,7 +2717,11 @@ static void loosen_unused_packed_objects(struct rev_info *revs)
  */
 static int pack_options_allow_reuse(void)
 {
-       return pack_to_stdout && allow_ofs_delta;
+       return pack_to_stdout &&
+              allow_ofs_delta &&
+              !ignore_packed_keep &&
+              (!local || !have_non_local_packs) &&
+              !incremental;
 }
 
 static int get_object_list_from_bitmap(struct rev_info *revs)