Re: [PATCH v7 2/2] ident: add user.useConfigOnly boolean for when ident shouldn't be guessed
From: Dan Aloni <hidden>
Date: 2016-06-15 23:08:08
On Fri, Feb 05, 2016 at 04:59:52PM -0500, Eric Sunshine wrote:
On Fri, Feb 05, 2016 at 11:29:06PM +0200, Dan Aloni wrote:quoted
It used to be that: git config --global user.email "(none)" was a viable way for people to force themselves to set user.email in each repository. This was helpful for people with more than one email address, targeting different email addresses for different clones, as it barred git from creating commit unless the user.emailEither: s/commit/a commit/ or s/commit/commits/
Thanks for all the proofing in your reply.
[..]quoted
config was set in the per-repo config to the correct email address. A recent change, 19ce497c (ident: keep a flag for bogus default_email, 2015-12-10), however declared that an explicitlys/however/&,/quoted
configured user.email is not bogus, no matter what its value is, so this hack no longer works. Provide the same functionality by adding a new configuration variable user.useConfigOnly; when this variable is set, the user must explicitly set user.email configuration. Signed-off-by: Dan Aloni <redacted> Helped-by: Jeff King [off-list ref] Signed-off-by: Junio C Hamano <redacted> Cc: Eric Sunshine <redacted>You'd generally place your sign-off last. [..]
Good to know :)
This test script still has a fair amount of unnecessary cruft in it which obscures the important bits showing what you are really testing. Below is a more concise version with the unnecessary stuff removed:
Thanks, though I'll stick to what Jeff suggested. Also, perhaps better to keep 'test_config' as it is instead of using '-c', to better mimick the tested use case. -- Dan Aloni