diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-02-23 19:22:27 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-23 11:53:21 -0800 |
commit | 8efb8899cfe866dddb3659b9e0a94232161db65e (patch) | |
tree | ddd5923a81c5050afc629b45ce02b09fad51dfec /t/t9130-git-svn-authors-file.sh | |
parent | branch: let branch filters imply --list (diff) | |
download | tgif-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 't/t9130-git-svn-authors-file.sh')
0 files changed, 0 insertions, 0 deletions