Code

git config: error when editing a repo config and not being in one
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 29 Apr 2009 22:49:47 +0000 (01:49 +0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Apr 2009 23:50:21 +0000 (16:50 -0700)
commitd212ca1724b1a3708a3b4cb72c58b20ef442b24f
tree95664c55c15108262eaa884e82ba5d4bceb4f8e0
parent2163e3f7786f56d5aaf9eadea6776bb0e38b30a4
git config: error when editing a repo config and not being in one

Let's throw an error on this specific case. If the user specifies the
config file, he must know what he is doing.

Teemu Likonen pointed this out.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-config.c