Skip to content

Commit 5c58f16

Browse files
authored
git: fix the pkgver (#182)
In 363b1e7 (git: drop the commit hash from pkgver for MSYS2 compatibility, 2025-11-14), I dropped the auto-updating logic of `pkgver`, forgetting that Git for Windows' automation would not update that line. As a consequence, the Pacman packages built as part of Git for Windows' v2.53.0 release process incorrectly reference the previous pkgver and the Git for Windows SDKs do not enjoy the update. Let's fix that by switching to a Bash'ism (which is fine, given that `makepkg` contains _so many_ Bash'isms that it is highly implausible that it will ever work with any other Unix shell).
2 parents 85dd204 + 52bfcf0 commit 5c58f16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mingw-w64-git/PKGBUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
1818
"${MINGW_PACKAGE_PREFIX}-${_realname}-gui"
1919
"${MINGW_PACKAGE_PREFIX}-${_realname}-for-windows-addons")
2020
tag=2.53.0.windows.1
21-
pkgver=2.52.0.1
22-
pkgrel=1
21+
pkgver=${tag/.windows./.}
22+
pkgrel=2
2323
pkgdesc="The fast distributed version control system (mingw-w64)"
2424
arch=('any')
2525
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')

0 commit comments

Comments
 (0)