diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2016-06-06 19:29:33 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-06 13:09:07 -0700 |
commit | 34d8f5a8aa4aa17af3158f325173eb08c9c05eb1 (patch) | |
tree | 27faadbbf1553347c30e54ae3892e094f4007ca4 /Documentation/revisions.txt | |
parent | Git 2.5.5 (diff) | |
download | tgif-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 'Documentation/revisions.txt')
0 files changed, 0 insertions, 0 deletions