sha1_file: teach packed_object_info about typename
[gitweb.git] / commit.c
index 713f09feb04116fc1529cbca1ca9cbd38e4e4379..99846d9bf467be8e737341795054588475c65855 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -168,7 +168,7 @@ struct commit_graft *read_graft_line(char *buf, int len)
 
 static int read_graft_file(const char *graft_file)
 {
-       FILE *fp = fopen(graft_file, "r");
+       FILE *fp = fopen_or_warn(graft_file, "r");
        struct strbuf buf = STRBUF_INIT;
        if (!fp)
                return -1;