summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 83e24dc)
raw | patch | inline | side by side (parent: 83e24dc)
author | Jeff King <peff@peff.net> | |
Tue, 23 Jan 2007 03:38:28 +0000 (22:38 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 23 Jan 2007 03:46:19 +0000 (19:46 -0800) |
We set the output directory to the git subdirectory prefix if one has
not already been specified. However, in the case of --stdout, we
explicitly _don't_ want the output directory to be set. The result was
that "git-format-patch --stdout" in a directory besides the project root
produced the "standard output, or directory, which one?" error message.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
not already been specified. However, in the case of --stdout, we
explicitly _don't_ want the output directory to be set. The result was
that "git-format-patch --stdout" in a directory besides the project root
produced the "standard output, or directory, which one?" error message.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-log.c | patch | blob | history |
diff --git a/builtin-log.c b/builtin-log.c
index 13a3f9b25db3fb2746c21b2ce6327627c965c0ce..503cd1e2be64a65032fd43dffa71f0340a94ed1f 100644 (file)
--- a/builtin-log.c
+++ b/builtin-log.c
if (!rev.diffopt.text)
rev.diffopt.binary = 1;
- if (!output_directory)
+ if (!output_directory && !use_stdout)
output_directory = prefix;
if (output_directory) {