Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-30 01:43:15 +0300
committerJunio C Hamano <gitster@pobox.com>2021-10-30 01:43:15 +0300
commita31efa77c641ed3a71f6445da93f623351afb76e (patch)
tree10d2307330fd1cefd628db7fad158763ebc630c1 /pretty.c
parent4d1ae1a60529a6883877eb13c2905be7a2eef373 (diff)
parent9e8fe7b1c789fee4b7d0b219180cd26de80d730e (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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pretty.c b/pretty.c
index fe95107ae5..be477bd51f 100644
--- a/pretty.c
+++ b/pretty.c
@@ -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,