]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ab/fetch-set-upstream-while-detached'
authorJunio C Hamano <gitster@pobox.com>
Thu, 23 Dec 2021 06:48:10 +0000 (22:48 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Dec 2021 06:48:10 +0000 (22:48 -0800)
"git fetch --set-upstream" did not check if there is a current
branch, leading to a segfault when it is run on a detached HEAD,
which has been corrected.

* ab/fetch-set-upstream-while-detached:
  pull, fetch: fix segfault in --set-upstream option

1  2 
builtin/fetch.c

diff --cc builtin/fetch.c
Simple merge