summaryrefslogtreecommitdiff
path: root/advice.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-02-22 11:23:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-02-22 18:23:52 (GMT)
commit45ebdcc99a8d8e7c671eb1db1212d90f5f2db341 (patch)
tree4ef31953f9eb62f517d24bd40f4af045b4911539 /advice.c
parent15b92fc05239a3c4f9af6177c1bfae1bcf2d5dce (diff)
downloadgit-45ebdcc99a8d8e7c671eb1db1212d90f5f2db341.zip
git-45ebdcc99a8d8e7c671eb1db1212d90f5f2db341.tar.gz
git-45ebdcc99a8d8e7c671eb1db1212d90f5f2db341.tar.bz2
remote: die on config error when setting URL
When invoking `git-remote --set-url` we do not check the return value when writing the actual new URL to the configuration file, pretending to the user that the configuration has been set while it was in fact not persisted. Fix this problem by dying early when setting the config fails. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.c')
0 files changed, 0 insertions, 0 deletions