daemon: default to 256 for HOST_NAME_MAX if it is not defined
[gitweb.git] / builtin-log.c
index fbc58bbcab1a992efb6ee359171d7ed6f0c52ab9..130b53a1960988aaf77014d39ee712a4848777b3 100644 (file)
@@ -270,6 +270,8 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
 
        rev.extra_headers = extra_headers;
 
+       output_directory = prefix;
+
        /*
         * Parse the arguments before setup_revisions(), or something
         * like "git fmt-patch -o a123 HEAD^.." may fail; a123 is