Re: [PATCH] add: allow configurations to be overriden by command line
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:58
Stephen Boyd [off-list ref] writes:
Don't call git_config after parsing the command line options, otherwise the config settings will override any settings made by the command line.
Amusing. This dates back to the original 0d78153 (Do "git add" as a builtin, 2006-05-17). It had two git_config() calls (one before command line parsing, and then another). Then 11be42a (Make git-mv a builtin, 2006-07-26) noticed this duplicate calls, and removed the wrong one. The calling sequence has been the same ever since; parse-opt-ification 5c46f75 (Port builtin-add.c to use the new option parser., 2007-10-03) did not affect it either. Perhaps this deserves a test. It is an ancient breakage nobody noticed so far. Thanks