Revision 27852b2c5347ecd815301e668e7415509f1dae07 authored by Patrick Steinhardt on 22 February 2016, 11:23:23 UTC, committed by Junio C Hamano on 22 February 2016, 18:23:30 UTC
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>
1 parent b4c8aba
History
File Mode Size
po
.gitignore -rw-r--r-- 27 bytes
Makefile -rw-r--r-- 2.1 KB
gitk -rwxr-xr-x 340.6 KB

back to top