]> git.ipfire.org Git - thirdparty/git.git/blobdiff - combine-diff.c
Start the 2.46 cycle
[thirdparty/git.git] / combine-diff.c
index db94581f72443c28fd47535db78e39b5ad021a86..d6d6fa168942053e756317d8b490435e4d1280b6 100644 (file)
@@ -337,6 +337,8 @@ static char *grab_blob(struct repository *r,
                free_filespec(df);
        } else {
                blob = repo_read_object_file(r, oid, &type, size);
+               if (!blob)
+                       die(_("unable to read %s"), oid_to_hex(oid));
                if (type != OBJ_BLOB)
                        die("object '%s' is not a blob!", oid_to_hex(oid));
        }