mirror of
https://github.com/archlinux/aur.git
synced 2026-03-04 09:25:35 +01:00
fix(pkgver): switch to count.hash versioning to support untagged repos
This commit is contained in:
parent
1df83df71d
commit
a8480f8070
1 changed files with 0 additions and 1 deletions
1
PKGBUILD
1
PKGBUILD
|
|
@ -15,7 +15,6 @@ sha256sums=('SKIP')
|
|||
|
||||
pkgver() {
|
||||
cd "$srcdir/${pkgname%-git}"
|
||||
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue