date: check for "local" before anything else
[gitweb.git] / submodule.c
index 15e90d1c10ebc9ecb0825f731b33d81cf3d9b4d5..700bbf4fcb4cd93b79304d934bed8901c63a853a 100644 (file)
@@ -993,7 +993,7 @@ static void print_commit(struct commit *commit)
 {
        struct strbuf sb = STRBUF_INIT;
        struct pretty_print_context ctx = {0};
-       ctx.date_mode = DATE_NORMAL;
+       ctx.date_mode.type = DATE_NORMAL;
        format_commit_message(commit, " %h: %m %s", &sb, &ctx);
        fprintf(stderr, "%s\n", sb.buf);
        strbuf_release(&sb);