summaryrefslogtreecommitdiff
path: root/t/t2026-prune-linked-checkouts.sh
diff options
context:
space:
mode:
authorLibravatar Ville Skyttä <ville.skytta@iki.fi>2016-06-06 19:29:33 +0300
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-06-06 13:09:07 -0700
commit34d8f5a8aa4aa17af3158f325173eb08c9c05eb1 (patch)
tree27faadbbf1553347c30e54ae3892e094f4007ca4 /t/t2026-prune-linked-checkouts.sh
parentGit 2.5.5 (diff)
downloadtgif-34d8f5a8aa4aa17af3158f325173eb08c9c05eb1.tar.xz
git-prompt.sh: Don't error on null ${ZSH,BASH}_VERSION, $short_sha
When the shell is in "nounset" or "set -u" mode, referencing unset or null variables results in an error. Protect $ZSH_VERSION and $BASH_VERSION against that, and initialize $short_sha before use. Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2026-prune-linked-checkouts.sh')
0 files changed, 0 insertions, 0 deletions