Skip to content

Commit 7296096

Browse files
dschogitster
authored andcommitted
mailinfo: fix 'fatal: cannot convert from utf-8 to utf-8'
For some reason, I got this error message. Maybe it does not make sense, but then we should not really try to convert the text when it is not necessary. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a781785 commit 7296096

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

builtin-mailinfo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ static void convert_to_utf8(char *line, const char *charset)
529529
return;
530530
}
531531

532+
if (!strcmp(metainfo_charset, charset))
533+
return;
532534
out = reencode_string(line, metainfo_charset, charset);
533535
if (!out)
534536
die("cannot convert from %s to %s\n",

0 commit comments

Comments
 (0)