Code

git-config: print error message if the config file cannot be read
authorGerrit Pape <pape@smarden.org>
Fri, 12 Oct 2007 11:40:57 +0000 (11:40 +0000)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 18 Oct 2007 05:35:33 +0000 (01:35 -0400)
commit93a56c2cf7c8b29ca4c5e0740fe1e487324ffc73
treed6c4f27eb2cc4e0f449a9a3e618e97b96502ec5e
parenta2d6b872dbf4e65525c9ba55e820e2ea26011ce1
git-config: print error message if the config file cannot be read

Instead of simply exiting with 255, print an error message including
the reason why a config file specified through --file cannot be opened
or read.

The problem was noticed by Joey Hess, reported through
 http://bugs.debian.org/445208

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
builtin-config.c