git-patch-id: do not trip over "no newline" markers
[gitweb.git] / builtin / log.c
index 4191d9c4e55c0745b96e8f93161ea10fb4ec7e0d..d8c6c28d2fcc3bd0744f071da536215141dc0d0b 100644 (file)
@@ -1158,6 +1158,8 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
 
        if (!use_stdout)
                output_directory = set_outdir(prefix, output_directory);
+       else
+               setup_pager();
 
        if (output_directory) {
                if (use_stdout)