aboutsummaryrefslogtreecommitdiff
path: root/trailer.c
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2016-06-06 19:29:33 +0300
committerJunio C Hamano <gitster@pobox.com>2016-06-06 13:09:07 -0700
commit34d8f5a8aa4aa17af3158f325173eb08c9c05eb1 (patch)
tree27faadbbf1553347c30e54ae3892e094f4007ca4 /trailer.c
parente568e563ade00bbb0937162f405fc160f253e224 (diff)
downloadgit-34d8f5a8aa4aa17af3158f325173eb08c9c05eb1.tar.gz
git-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 'trailer.c')
0 files changed, 0 insertions, 0 deletions