git config --help not functional on bad config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux