introduce "format" date-mode
[gitweb.git] / archive.c
index d37c41daf29b1163ac7743e5ce17cdafc9b2e8a3..30bda56d157e05d233dc99321dce529ad0d69aba 100644 (file)
--- a/archive.c
+++ b/archive.c
@@ -33,7 +33,7 @@ static void format_subst(const struct commit *commit,
        char *to_free = NULL;
        struct strbuf fmt = STRBUF_INIT;
        struct pretty_print_context ctx = {0};
-       ctx.date_mode = DATE_NORMAL;
+       ctx.date_mode.type = DATE_NORMAL;
        ctx.abbrev = DEFAULT_ABBREV;
 
        if (src == buf->buf)