]> git.ipfire.org Git - thirdparty/git.git/commit
submodule--helper: die on config error when cloning module
authorPatrick Steinhardt <ps@pks.im>
Mon, 22 Feb 2016 11:23:27 +0000 (12:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2016 18:23:52 +0000 (10:23 -0800)
commit15b92fc05239a3c4f9af6177c1bfae1bcf2d5dce
treeb30903b0f0be2c658824921a4c7addba0d9e9430
parent1a90dfe8a7e3fae31aa0b13b799bd3345e91e985
submodule--helper: die on config error when cloning module

When setting the 'core.worktree' option for a newly cloned
submodule we ignore the return value of `git_config_set_in_file`.
As this leaves the submodule in an inconsistent state, we instead
want to inform the user that something has gone wrong by printing
an error and aborting the program.

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