Re: [PATCH v9] builtin/clone.c: add --reject-shallow option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 31, 2021, 22:37 UTC
- Message-ID
- <xmqqim5754rl.fsf@gitster.g>
- In-Reply-To
- <nycvar.QRO.7.76.6.2104010021510.54@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 8 quoted lines
>> Does this "single variable is enough" really work? >> ... > That's my mistake, and you don't even need a second config to see the > problem: > > [clone] > rejectShallow = false > rejectShallow = true
Yup, that is a much simpler example.
> Sorry for the trouble!
Don't feel bad---in an earlier round of review I made a similar mistake to wonder if these two variables can be reduced into one myself ;-). As you said, this one is special in making two calls to git_config() and need to be handled carefully.
Thanks.