Replace all die("BUG: ...") calls by BUG() ones
[gitweb.git] / pack-bitmap-write.c
index 41ae27fb19a94a4c44058d8850a9592c41b82f90..3c7b5edda8ae3e22882d566629ddb54ff41b450b 100644 (file)
@@ -474,7 +474,7 @@ static void write_selected_commits_v1(struct hashfile *f,
                        sha1_pos(stored->commit->object.oid.hash, index, index_nr, sha1_access);
 
                if (commit_pos < 0)
-                       die("BUG: trying to write commit not in index");
+                       BUG("trying to write commit not in index");
 
                hashwrite_be32(f, commit_pos);
                hashwrite_u8(f, stored->xor_offset);