diff options
author | Patrick Steinhardt <ps@pks.im> | 2016-02-22 12:23:29 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-22 10:23:53 -0800 |
commit | ab5e4b67e14cbd09e74d3b19c0553a3716205c45 (patch) | |
tree | 19e413bdcc99240fc2ddf4e76742770cd3c79101 /builtin/commit-tree.c | |
parent | 45ebdcc99a8d8e7c671eb1db1212d90f5f2db341 (diff) | |
download | git-ab5e4b67e14cbd09e74d3b19c0553a3716205c45.tar.gz |
remote: die on config error when setting/adding branches
When we add or set new branches (e.g. by `git remote add -f` or
`git remote set-branches`) we do not check for error codes when
writing the branches to the configuration file. When persisting
the configuration failed we are left with a remote that has none
or not all of the branches that should have been set without
notifying the user.
Fix this issue by dying early on configuration error.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-tree.c')
0 files changed, 0 insertions, 0 deletions