summaryrefslogtreecommitdiff
path: root/functions/vcs.zsh
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2016-04-17 18:51:31 +0300
committerDominik Ritter <dritter03@googlemail.com>2016-04-17 19:03:31 +0300
commit7b2e995299175a8d2e573413975ff8da43b0a9a2 (patch)
treea24ffe7faa0448781e15bbf3dd8240374aa1720d /functions/vcs.zsh
parenta09eda677421bea934a08a0d1bc5196ab973d853 (diff)
Fix truncation of changeset in detached tag mode
Diffstat (limited to 'functions/vcs.zsh')
-rw-r--r--functions/vcs.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh
index 63cdbc75..15f0177e 100644
--- a/functions/vcs.zsh
+++ b/functions/vcs.zsh
@@ -74,7 +74,7 @@ function +vi-git-tagname() {
# exists, so we have to manually retrieve it and clobber the branch
# string.
local revision
- revision=$(git rev-list -n 1 --abbrev-commit --abbrev=8 HEAD)
+ revision=$(git rev-list -n 1 --abbrev-commit --abbrev=${POWERLEVEL9K_VCS_INTERNAL_HASH_LENGTH} HEAD)
hook_com[branch]="$(print_icon 'VCS_BRANCH_ICON')${revision} $(print_icon 'VCS_TAG_ICON')${tag}"
else
# We are on both a tag and a branch; print both by appending the tag name.