diff options
author | 2015-09-24 17:02:54 -0400 | |
---|---|---|
committer | 2015-09-25 10:18:18 -0700 | |
commit | 7cd17e80579c2bffd6245837175a6e1b12a78045 (patch) | |
tree | a05065010e9c4d15c90c8896b133c5162e45e6dc /Documentation/git-mktag.txt | |
parent | Git 2.6-rc3 (diff) | |
download | tgif-7cd17e80579c2bffd6245837175a6e1b12a78045.tar.xz |
show-branch: avoid segfault with --reflog of unborn branch
When no branch is given to the "--reflog" option, we resolve
HEAD to get the default branch. However, if HEAD points to
an unborn branch, resolve_ref returns NULL, and we later
segfault trying to access it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-mktag.txt')
0 files changed, 0 insertions, 0 deletions