From: Johannes Schindelin Date: Wed, 24 Feb 2016 12:48:11 +0000 (+0100) Subject: git config: report when trying to modify a non-existing repo config X-Git-Tag: v2.8.0-rc0~5^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/638fa623d5b5fb392a062edf61ccf086d35ab26b?hp=638fa623d5b5fb392a062edf61ccf086d35ab26b git config: report when trying to modify a non-existing repo config 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 Signed-off-by: Junio C Hamano ---