summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPier Luigi Fiorini2017-11-25 22:59:30 +0100
committerPier Luigi Fiorini2017-11-25 22:59:30 +0100
commite18a49127e3ff18682f5842bf5c168f027acaa40 (patch)
treeb983003cbc2e61832e8a3155a22184fb3fb230df
parent8c1f76d391861c5863740da22b8a97c4072d6bff (diff)
downloadaur-e18a49127e3ff18682f5842bf5c168f027acaa40.tar.gz
Add commit count to version
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 12d3eaa329e..bca64702c3a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,7 +22,7 @@ md5sums=('SKIP')
pkgver() {
cd ${srcdir}/${_gitname}
- echo "$(git log -1 --format="%cd" --date=short | tr -d '-').$(git log -1 --format="%h")"
+ echo "$(git log -1 --format="%cd" --date=short | tr -d '-').$(git rev-list --count HEAD).$(git log -1 --format="%h")"
}
build() {