diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-30 01:43:15 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-30 01:43:15 +0300 |
commit | a31efa77c641ed3a71f6445da93f623351afb76e (patch) | |
tree | 10d2307330fd1cefd628db7fad158763ebc630c1 /pretty.c | |
parent | 4d1ae1a60529a6883877eb13c2905be7a2eef373 (diff) | |
parent | 9e8fe7b1c789fee4b7d0b219180cd26de80d730e (diff) |
Merge branch 'jk/log-warn-on-bogus-encoding'
Squelch over-eager warning message added during this cycle.
* jk/log-warn-on-bogus-encoding:
log: document --encoding behavior on iconv() failure
Revert "logmsg_reencode(): warn when iconv() fails"
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -671,11 +671,7 @@ const char *repo_logmsg_reencode(struct repository *r, * If the re-encoding failed, out might be NULL here; in that * case we just return the commit message verbatim. */ - if (!out) { - warning("unable to reencode commit to '%s'", output_encoding); - return msg; - } - return out; + return out ? out : msg; } static int mailmap_name(const char **email, size_t *email_len, |