]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/remote.c
remote: die on config error when manipulating remotes
authorPatrick Steinhardt <ps@pks.im>
Mon, 22 Feb 2016 11:23:30 +0000 (12:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2016 18:23:53 +0000 (10:23 -0800)
commitc397debf3d046713ffd040f2c7da5e6921121ce8
treeeea2439aaa0de93b12cecceafb277c8c960f1905
parentab5e4b67e14cbd09e74d3b19c0553a3716205c45
remote: die on config error when manipulating remotes

When manipulating remotes we try to set various configuration
values without checking if the values were persisted correctly,
possibly leaving the remote in an inconsistent state.

Fix this issue by dying early and notifying the user about the
error.

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