about summary refs log tree commit diff
path: root/Src/zsh.mdd
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-08-31 23:34:11 +0200
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-08-31 23:34:11 +0200
commit014eaf7e810dda8be5eaf97c37c9f86e6e839022 (patch)
tree0329f8f46d71f4857a131886f3645f7c06693f43 /Src/zsh.mdd
parent43e9a1dc974c61d208ea5b39ba0b387368290a93 (diff)
downloadzsh-014eaf7e810dda8be5eaf97c37c9f86e6e839022.tar.gz
zsh-014eaf7e810dda8be5eaf97c37c9f86e6e839022.tar.xz
zsh-014eaf7e810dda8be5eaf97c37c9f86e6e839022.zip
43358: enforce consistent patchlevel form
Diffstat (limited to 'Src/zsh.mdd')
-rw-r--r--Src/zsh.mdd4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/zsh.mdd b/Src/zsh.mdd
index 324435d62..3e5788af5 100644
--- a/Src/zsh.mdd
+++ b/Src/zsh.mdd
@@ -53,8 +53,8 @@ patchlevel.h: FORCE
 	@if [ -f $(sdir)/$@.release ]; then \
 	  cp -f $(sdir)/$@.release $@; \
 	else \
-	  echo '#define ZSH_PATCHLEVEL "'`cd $(sdir) && git describe --tags --long`'"' > $@.tmp; \
-	  cmp $@ $@.tmp >/dev/null 2>&1 && rm -f $@.tmp || mv $@.tmp $@; \
+	  echo '#define ZSH_PATCHLEVEL "'`cd $(sdir) && git describe --tags --long --abbrev=7`'"' > $@.tmp; \
+	  cmp $@ $@.tmp >/dev/null 2>&1 && rm -f $@.tmp || mv -f $@.tmp $@; \
 	fi
 FORCE: