From 0a28ae1b86756517ce5642e701be1be8e9e94e17 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 10 Oct 2016 15:46:29 +0200 Subject: parsing: use get_commit_buffer() in cgit_parse_commit() Currently we use get_cached_commit_buffer(), which failes if there is no cached commit buffer. Instead use get_commit_buffer(), which uses cached commit buffer when available. --- parsing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsing.c b/parsing.c index 9dacb16..9c8bb6f 100644 --- a/parsing.c +++ b/parsing.c @@ -131,7 +131,7 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) { const int sha1hex_len = 40; struct commitinfo *ret; - const char *p = get_cached_commit_buffer(commit, NULL); + const char *p = get_commit_buffer(commit, NULL); const char *t; ret = xcalloc(1, sizeof(struct commitinfo)); -- cgit v1.2.3