aboutsummaryrefslogtreecommitdiff
path: root/credential.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-02-23 19:22:27 +0700
committerJunio C Hamano <gitster@pobox.com>2013-02-23 11:53:21 -0800
commit8efb8899cfe866dddb3659b9e0a94232161db65e (patch)
treeddd5923a81c5050afc629b45ce02b09fad51dfec /credential.c
parentd040350813986e0f4bb3aeb977077975c1552606 (diff)
downloadgit-8efb8899cfe866dddb3659b9e0a94232161db65e.tar.gz
git-8efb8899cfe866dddb3659b9e0a94232161db65e.tar.xz
branch: segfault fixes and validation
branch_get() can return NULL (so far on detached HEAD only) but some code paths in builtin/branch.c cannot deal with that and cause segfaults. While at there, make sure to bail out when the user gives 2 or more branches with --set-upstream-to or --unset-upstream, where only the first branch is processed and the rest silently dropped. Reported-by: Per Cederqvist <cederp@opera.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential.c')
0 files changed, 0 insertions, 0 deletions