summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPier Luigi Fiorini2017-11-25 22:59:58 +0100
committerPier Luigi Fiorini2017-11-25 22:59:58 +0100
commitbfd8c1601db72ca110856010524d913fbbe1a3b0 (patch)
treea03b74d2328f26ab66fef86b0952b06e63f280b7
parent2d90217ce4996ed9e76647381dc72d2cb5ac50a5 (diff)
downloadaur-bfd8c1601db72ca110856010524d913fbbe1a3b0.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 0687b43c5a1..39246d76f76 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() {