clone: die on config error in cmd_clone
authorPatrick Steinhardt <ps@pks.im>
Mon, 22 Feb 2016 11:23:31 +0000 (12:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2016 18:23:53 +0000 (10:23 -0800)
commit2ee35c428e0685b4fc3bc2e828326b6fcefb78c0
tree813dd95f9803286d8337ba1ad25e9feed60b6bde
parentc397debf3d046713ffd040f2c7da5e6921121ce8
clone: die on config error in cmd_clone

The clone command does not check for error codes returned by
`git_config_set` functions. This may cause the user to end up
with an inconsistent repository without any indication with what
went wrong.

Fix this problem by dying with an error message when we are
unable to write the configuration files to disk.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c