aboutsummaryrefslogtreecommitdiff
path: root/archive.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-02-22 12:23:23 +0100
committerJunio C Hamano <gitster@pobox.com>2016-02-22 10:23:30 -0800
commit27852b2c5347ecd815301e668e7415509f1dae07 (patch)
tree0ccba4584f589e70bda8479189e83c64537f88d0 /archive.c
parentb4c8aba659cb3264bcce3110d54bfcaab485408b (diff)
downloadgit-27852b2c5347ecd815301e668e7415509f1dae07.tar.gz
git-27852b2c5347ecd815301e668e7415509f1dae07.tar.xz
branch: report errors in tracking branch setup
When setting up a new tracking branch fails due to issues with the configuration file we do not report any errors to the user and pretend setting the tracking branch succeeded. Setting up the tracking branch is handled by the `install_branch_config` function. We do not want to simply die there as the function is not only invoked when explicitly setting upstream information with `git branch --set-upstream-to=`, but also by `git push --set-upstream` and `git clone`. While it is reasonable to die in the explict first case, we would lose information in the latter two cases, so we only print the error message but continue the program as usual. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.c')
0 files changed, 0 insertions, 0 deletions