diff --git a/pretty.c b/pretty.c index dff5c8d183..52174fd147 100644 --- a/pretty.c +++ b/pretty.c @@ -1084,7 +1084,7 @@ void userformat_find_requirements(const char *fmt, struct userformat_want *w) return; fmt = user_format; } - strbuf_expand(&dummy, user_format, userformat_want_item, w); + strbuf_expand(&dummy, fmt, userformat_want_item, w); strbuf_release(&dummy); }