format-patch: fix bug with --stdout in a subdirectory
authorJeff King <peff@peff.net>
Tue, 23 Jan 2007 03:38:28 +0000 (22:38 -0500)
committerJunio C Hamano <junkio@cox.net>
Tue, 23 Jan 2007 03:46:19 +0000 (19:46 -0800)
commit90f70a910ac77cab7bc1b9a6c4b233add98a58c7
tree378b25150d5812b3588f1a5abb9e309b1d69cba6
parent83e24dce148fd384cbfb01cf718ec32618f6d8b3
format-patch: fix bug with --stdout in a subdirectory

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>
builtin-log.c