Re: git config -> "fatal: bad config file"
- From
David Reitter <david.reitter@gmail.com>
- Date
- Aug 14, 2009, 14:26 UTC
- Message-ID
- <2D345CF1-9534-46F2-B0DF-ADA4EFDB5A51@gmail.com>
- In-Reply-To
- <4A85724C.5060406@drmicha.warpmail.net>
On Aug 14, 2009, at 10:18 AM, Michael J Gruber wrote:
> git needs to read the file because the editor could be configured > there! > The only option would be to make git config -e continue past that > error.
Syntax errors in .git/config could lead to warnings. Since the file is primarily line-oriented anyways (except for groups), recovery should be easy.
Also, you could have git-config -e edit a temporary file, check the file for errors after editing and then move it to .git/config.