summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-02-23 12:22:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-23 19:53:21 (GMT)
commit8efb8899cfe866dddb3659b9e0a94232161db65e (patch)
treeddd5923a81c5050afc629b45ce02b09fad51dfec /perl
parentd040350813986e0f4bb3aeb977077975c1552606 (diff)
downloadgit-8efb8899cfe866dddb3659b9e0a94232161db65e.zip
git-8efb8899cfe866dddb3659b9e0a94232161db65e.tar.gz
git-8efb8899cfe866dddb3659b9e0a94232161db65e.tar.bz2
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 'perl')
0 files changed, 0 insertions, 0 deletions