Re: How to undo previously set configuration?
- From
Olaf Hering <olaf@aepfle.de>
- Date
- Apr 6, 2018, 15:55 UTC
- Message-ID
- <20180406175556.5b6e16f0.olaf@aepfle.de>
- In-Reply-To
- <20180405163227.GA25224@sigill.intra.peff.net>
Am Thu, 5 Apr 2018 12:32:27 -0400 schrieb Jeff King <peff@peff.net>:
Show 7 quoted lines
> The general strategy in Git's config is that instead of "unsetting", you > should overwrite with whatever value you _do_ want. So a config option > like sendemail.smtpauth should accept some kind of empty or "none" value > to disable auth. > > Most single-value config options should work this way (and if one > doesn't, I'd say that's a bug we should fix).
This does not work. Initially I copied the global config into the repo and set all unwanted values to <empty>, like 'smtpuser='. Perhaps the config parser recognized that fact, but the consumer does not?
Olaf