From d98d4f9e920977e30411ae6b398cf36114c28c5a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 8 Jul 2024 23:29:59 +0200 Subject: [PATCH] fixup! open-pr: support `msys2-runtime` PRs --- update-scripts/version/msys2-runtime | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update-scripts/version/msys2-runtime b/update-scripts/version/msys2-runtime index 448a2e05..6355304f 100755 --- a/update-scripts/version/msys2-runtime +++ b/update-scripts/version/msys2-runtime @@ -37,8 +37,9 @@ esac # `updpkgsums` requires the bare clone `msys2-runtime` to exist git init --bare msys2-runtime && git --git-dir=msys2-runtime config remote.origin.url https://github.com/cygwin/cygwin && +git --git-dir=msys2-runtime fetch --tags https://github.com/cygwin/cygwin && -git init --bare src/msys2-runtime && +git clone --bare msys2-runtime src/msys2-runtime && git --git-dir=src/msys2-runtime config remote.origin.url https://github.com/git-for-windows/msys2-runtime && # pretend to be a partial clone git --git-dir=src/msys2-runtime config remote.origin.promisor true && @@ -53,7 +54,6 @@ previous_commit="$(cat msys2-runtime.commit)" && { # update pkgver if needed update_pkgver= && -git --git-dir=src/msys2-runtime fetch --tags https://github.com/cygwin/cygwin && pkgver=$(git --git-dir=src/msys2-runtime describe --match='cygwin-[0-9]*' "$revision") && pkgver=${pkgver#cygwin-} && pkgver=${pkgver%%-*} &&