]> git.ipfire.org Git - thirdparty/git.git/blobdiff - combine-diff.c
commit-reach(paint_down_to_common): start reporting errors
[thirdparty/git.git] / combine-diff.c
index f90f442482932e618cc7399924c00ddde8c50eaf..d6d6fa168942053e756317d8b490435e4d1280b6 100644 (file)
@@ -2,7 +2,6 @@
 #include "object-store-ll.h"
 #include "commit.h"
 #include "convert.h"
-#include "blob.h"
 #include "diff.h"
 #include "diffcore.h"
 #include "environment.h"
@@ -338,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));
        }