git config: report when trying to modify a non-existing repo config
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 24 Feb 2016 12:48:11 +0000 (13:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Feb 2016 18:52:32 +0000 (10:52 -0800)
It is a pilot error to call `git config section.key value` outside of
any Git worktree. The message

error: could not lock config file .git/config: No such file or
directory

is not very helpful in that situation, though. Let's print a helpful
message instead.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found