Re: [PATCH] submodule status: properly pass options with --recursive
- From
Jeff King <peff@peff.net>
- Date
- Oct 26, 2012, 13:15 UTC
- Message-ID
- <20121026131507.GA2747@sigill.intra.peff.net>
- In-Reply-To
- <5089BB2D.90400@web.de>
On Fri, Oct 26, 2012 at 12:20:29AM +0200, Jens Lehmann wrote:
Show 8 quoted lines
> When renaming orig_args to orig_flags in 98dbe63d (submodule: only > preserve flags across recursive status/update invocations) the call site > of the recursive cmd_status was forgotten. At that place orig_args is > still passed into the recursion, which is always empty now. This clears > all options when recursing, as that variable is never set. > > Fix that by renaming orig_args to orig_flags there too and add a test to > catch that bug.
Thanks. I back-ported your patch on top of 98dbe63d so it can go to 'maint'. I'm curious, though: why didn't the test right before (which checks recursion for --cached) catch this?
-Peff