use get_cached_commit_buffer where appropriate
[gitweb.git] / builtin / blame.c
index 85a36813069f91e3a9b8ea5aa172d015265b9385..38784ab9d6714400cbb7e7c555ef5a19376d307e 100644 (file)
@@ -2046,7 +2046,7 @@ static struct commit *fake_working_tree_commit(struct diff_options *opt,
                    ident, ident, path,
                    (!contents_from ? path :
                     (!strcmp(contents_from, "-") ? "standard input" : contents_from)));
-       commit->buffer = strbuf_detach(&msg, NULL);
+       set_commit_buffer(commit, strbuf_detach(&msg, NULL));
 
        if (!contents_from || strcmp("-", contents_from)) {
                struct stat st;