docs/git-tag: explain lightweight versus annotated tags
[gitweb.git] / sequencer.c
index e3723d20956719d2cba13ee6c6890ff1a8cfd21a..73c396bd89bb476dabec60f7e52f8e6857f725d7 100644 (file)
@@ -60,7 +60,7 @@ static int get_message(struct commit *commit, struct commit_message *out)
 
        out->reencoded_message = NULL;
        out->message = commit->buffer;
-       if (strcmp(encoding, git_commit_encoding))
+       if (same_encoding(encoding, git_commit_encoding))
                out->reencoded_message = reencode_string(commit->buffer,
                                        git_commit_encoding, encoding);
        if (out->reencoded_message)