summaryrefslogtreecommitdiff
path: root/t/t9806-git-p4-options.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-11-18 15:21:12 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-11-18 15:21:12 -0800
commit84679d470d577bcde1b6aa6af36c08a2d77b6e68 (patch)
treea42f20ac63cfacfcff3a25256592f41c22745961 /t/t9806-git-p4-options.sh
parentGit 2.8.4 (diff)
downloadtgif-84679d470d577bcde1b6aa6af36c08a2d77b6e68.tar.xz
for-each-ref: do not segv with %(HEAD) on an unborn branch
The code to flip between "*" and " " prefixes depending on what branch is checked out used in --format='%(HEAD)' did not consider that HEAD may resolve to an unborn branch and dereferenced a NULL. This will become a lot easier to trigger as the codepath will be used to reimplement "git branch [--list]" in the future. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9806-git-p4-options.sh')
0 files changed, 0 insertions, 0 deletions