summaryrefslogtreecommitdiff
path: root/t/helper/test-sha1.sh
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2021-05-12 13:16:13 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-05-13 08:48:59 +0900
commit1ff595d218d9175eee1db753844044c2746d0515 (patch)
treed9d03e88268610d8068991429bab02d7fdfa4dc1 /t/helper/test-sha1.sh
parentt3905: correct test title (diff)
downloadtgif-1ff595d218d9175eee1db753844044c2746d0515.tar.xz
stash show: fix segfault with --{include,only}-untracked
When `git stash show --include-untracked` or `git stash show --only-untracked` is run on a stash that doesn't include an untracked entry, a segfault occurs. This happens because we do not check whether the untracked entry is actually present and just attempt to blindly dereference it. Ensure that the untracked entry is present before actually attempting to dereference it. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-sha1.sh')
0 files changed, 0 insertions, 0 deletions