]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3200-branch.sh
branch: die on config error when unsetting upstream
authorPatrick Steinhardt <ps@pks.im>
Mon, 22 Feb 2016 11:23:24 +0000 (12:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Feb 2016 18:23:45 +0000 (10:23 -0800)
commitb81842cbbba21a400c9c7a78c5b358565936254a
tree063509f29a617d1e63263c04fa9f8b6461e1f7c2
parent27852b2c5347ecd815301e668e7415509f1dae07
branch: die on config error when unsetting upstream

When we try to unset upstream configurations we do not check
return codes for the `git_config_set` functions. As those may
indicate that we were unable to unset the respective
configuration we may exit successfully without any error message
while in fact the upstream configuration was not unset.

Fix this by dying with an error message when we cannot unset the
configuration.

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