[Git][NTPsec/ntpsec][master] autorevision: hack to restore buildability

Gary E. Miller gitlab at mg.gitlab.com
Tue Nov 22 07:12:59 UTC 2016


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
b20dd545 by Gary E. Miller at 2016-11-21T23:12:09-08:00
autorevision: hack to restore buildability

- - - - -


1 changed file:

- wafhelpers/autorevision.sh


Changes:

=====================================
wafhelpers/autorevision.sh
=====================================
--- a/wafhelpers/autorevision.sh
+++ b/wafhelpers/autorevision.sh
@@ -158,7 +158,7 @@ gitRepo() {
 		VCS_FULL_HASH="$(git rev-parse HEAD)"
 
 		# The short hash
-		VCS_SHORT_HASH="$(echo "${VCS_FULL_HASH}" | cut -b 1-7)"
+		VCS_SHORT_HASH="$(git rev-parse --short "${VCS_FULL_HASH}")"
 	else
 		# The git-svn revision number
 		VCS_FULL_HASH="$(git svn find-rev HEAD)"



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/b20dd545da6a0b39506c8f4cd179ee5595a978b2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161122/dad0087e/attachment.html>


More information about the vc mailing list