So, I set the wrong value for a configuration option, and git tells me:

  $ git config branch.autoSetupRebase false
  $ git log
  error: malformed value for branch.autosetuprebase
  fatal: bad config variable 'branch.autosetuprebase' in file '.git/config' at 
line 24

That's fine. However, when trying to look for help, it is not that useful:

  $ git config --help
  error: malformed value for branch.autosetuprebase
  fatal: bad config variable 'branch.autosetuprebase' in file '.git/config' at 
line 24

Perhaps it should allow "--help" to go through even if the configuration is bad?

After a "git config --unset branch.autosetuprebase" everything works again, but I had to look that up manually calling "man git-config" (afterwards I realized I could go out of the repo to be unaffected by the config, but that probably wouldn't have helped if I had put this in my global config).

--
\\// Peter - http://www.softwolves.pp.se/

Reply via email to