summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openttd-git/PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/openttd-git/PKGBUILD b/openttd-git/PKGBUILD
index 1737882e4..c6c695e1b 100644
--- a/openttd-git/PKGBUILD
+++ b/openttd-git/PKGBUILD
@@ -43,10 +43,10 @@ sha512sums=('SKIP'
pkgver() {
printf '%s.%s\n' \
"$((
- $(git -C "${srcdir}/${pkgname}" rev-list --count master ^f84ad5f7c) + 28004
+ $(git -C "${srcdir}/${pkgname}" rev-list --count "${_commit}" ^f84ad5f7c) + 28004
))" \
"$(
- git -C "${srcdir}/${pkgname}" rev-parse --short=9 master
+ git -C "${srcdir}/${pkgname}" rev-parse --short=9 "${_commit}"
)"
}