commit: do not trigger bogus "has templated message edited" check
[gitweb.git] / builtin / commit.c
index eba1377eb32c02e57c46364c381df940afa66048..7141766ba959b5588b59b173f31463e73ead40f5 100644 (file)
@@ -1049,6 +1049,8 @@ static int parse_and_validate_options(int argc, const char *argv[],
                die(_("Only one of -c/-C/-F/--fixup can be used."));
        if (message.len && f > 0)
                die((_("Option -m cannot be combined with -c/-C/-F/--fixup.")));
+       if (f || message.len)
+               template_file = NULL;
        if (edit_message)
                use_message = edit_message;
        if (amend && !use_message && !fixup_message)