git-compat-util.h: don't define _XOPEN_SOURCE on cygwin
[gitweb.git] / revision.c
index 2571ada6bf66ce6e945c539be4b0123e5b9648a9..615535c98453336323a437530132f27824b51ac2 100644 (file)
@@ -1825,7 +1825,7 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
        } else if (!strcmp(arg, "--pretty")) {
                revs->verbose_header = 1;
                revs->pretty_given = 1;
-               get_commit_format(arg+8, revs);
+               get_commit_format(NULL, revs);
        } else if (starts_with(arg, "--pretty=") || starts_with(arg, "--format=")) {
                /*
                 * Detached form ("--pretty X" as opposed to "--pretty=X")