diff options
author | Michael J Gruber <git@drmicha.warpmail.net> | 2010-12-29 22:55:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-01-04 13:31:03 -0800 |
commit | 60d5985dab5d3c5a283f060414b903778adfd09a (patch) | |
tree | 7c494f82042a233769d40a62b0fac9aa396a3868 /git_remote_helpers/git/__init__.py | |
parent | cvsimport: partial whitespace cleanup (diff) | |
download | tgif-60d5985dab5d3c5a283f060414b903778adfd09a.tar.xz |
cvsimport: handle the parsing of uppercase config options
The current code leads to
fatal: bad config value for 'cvsimport.r' in .git/config
for a standard use case with cvsimport.r set.
cvsimport sets internal variables by checking the config for each
possible command line option. The problem is that config items are case
insensitive, so config.r and config.R are the same. The ugly error is
due to that fact that cvsimport expects a bool for -R (and thus
config.R) but a remote name for -r (and thus config.r).
Fix this by making cvsimport expect long names for uppercase options.
config options for cvsimport have been undocumented so far, though
present in the code and advertised in several tutorials. So one may read
"enhance" for "fix". Similarly, the names for the options are
"documented" in the code, waitiing for their lowercase equivalents to be
transformed into long config options, as well.
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git_remote_helpers/git/__init__.py')
0 files changed, 0 insertions, 0 deletions