]> git.ipfire.org Git - thirdparty/git.git/blobdiff - archive.c
path: optimize common dir checking
[thirdparty/git.git] / archive.c
index 936a5945dd01c8c2bd96937dc9111941246278c5..01b0899b3f9027c5a392bd58667ed0e216d082ed 100644 (file)
--- a/archive.c
+++ b/archive.c
@@ -34,7 +34,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)