format-patch: add --interdiff option to embed diff in cover letter
[gitweb.git] / builtin / verify-commit.c
index 05315ea7c966d3ed5b91e4cbd77eaa9943af253d..f6922da16d6bfaadc20462f206d4ce1f53a4994f 100644 (file)
@@ -8,6 +8,7 @@
 #include "cache.h"
 #include "config.h"
 #include "builtin.h"
+#include "object-store.h"
 #include "commit.h"
 #include "run-command.h"
 #include <signal.h>
@@ -44,7 +45,7 @@ static int verify_commit(const char *name, unsigned flags)
        if (get_oid(name, &oid))
                return error("commit '%s' not found.", name);
 
-       buf = read_sha1_file(oid.hash, &type, &size);
+       buf = read_object_file(&oid, &type, &size);
        if (!buf)
                return error("%s: unable to read file.", name);
        if (type != OBJ_COMMIT)