summaryrefslogtreecommitdiff
path: root/reflog-walk.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-02-22 11:23:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-02-22 18:23:52 (GMT)
commit1a90dfe8a7e3fae31aa0b13b799bd3345e91e985 (patch)
tree7d6a2723bfd0dfdd6eddd9391376c20deb0f6f30 /reflog-walk.h
parentbd25f890146f7e39b18f67113f1bf2e4741a4fb4 (diff)
downloadgit-1a90dfe8a7e3fae31aa0b13b799bd3345e91e985.zip
git-1a90dfe8a7e3fae31aa0b13b799bd3345e91e985.tar.gz
git-1a90dfe8a7e3fae31aa0b13b799bd3345e91e985.tar.bz2
submodule: die on config error when linking modules
When trying to connect a submodule with its corresponding repository in '.git/modules' we try to set the core.worktree setting in the submodule, which may fail due to an error encountered in `git_config_set_in_file`. The function is used in the git-mv command when trying to move a submodule to another location. We already die when renaming a file fails but do not pay attention to the case where updating the connection between submodule and its repository fails. As this leaves the repository in an inconsistent state, as well, abort the program by dying early and presenting the failure to the user. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reflog-walk.h')
0 files changed, 0 insertions, 0 deletions