versionstamp: Better $ZSH_HIGHLIGHT_REVISION reporting when running from git.

This commit is contained in:
Daniel Shahaf 2015-11-25 03:55:20 +00:00
parent 635a68f7b4
commit 84734ba950

View file

@ -36,7 +36,7 @@ if [[ -o function_argzero ]]; then
# When running from a source tree without 'make install', $ZSH_HIGHLIGHT_REVISION
# would be set to '$Format:%H$' literally. That's an invalid value, and obtaining
# the valid value (via `git rev-parse HEAD`, as Makefile does) might be costly, so:
unset ZSH_HIGHLIGHT_REVISION
ZSH_HIGHLIGHT_REVISION=HEAD
fi
else
# $0 is unreliable, so the call to _zsh_highlight_load_highlighters will fail.