tag: add repository argument to parse_tag_buffer
[gitweb.git] / pretty.c
index cbd25b6ceae29dcac5cce45cd48322602018ee7e..cde4fe07db0403d8cb63848842a4db26f62c12c7 100644 (file)
--- a/pretty.c
+++ b/pretty.c
@@ -630,7 +630,7 @@ const char *logmsg_reencode(const struct commit *commit,
                 * the cached copy from get_commit_buffer, we need to duplicate it
                 * to avoid munging the cached copy.
                 */
-               if (msg == get_cached_commit_buffer(commit, NULL))
+               if (msg == get_cached_commit_buffer(the_repository, commit, NULL))
                        out = xstrdup(msg);
                else
                        out = (char *)msg;