summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPier Luigi Fiorini2017-11-25 22:53:03 +0100
committerPier Luigi Fiorini2017-11-25 22:53:03 +0100
commitbb655e6327752e8904e0bfbbd65f6b87d6889576 (patch)
treeb69d109b101464ba81b2362efcb2eaa9fbcf3960
parent2c8f775f93ae1f2ffafe1bd0788b1389db60b4ab (diff)
downloadaur-bb655e6327752e8904e0bfbbd65f6b87d6889576.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 d0cd6ff86d3..02c691cabd2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,7 +23,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")"
}
prepare() {