Skip to content

Commit

Permalink
fixup! open-pr: support msys2-runtime PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Jul 8, 2024
1 parent 8e988b1 commit d98d4f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update-scripts/version/msys2-runtime
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand All @@ -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%%-*} &&
Expand Down

0 comments on commit d98d4f9

Please sign in to comment.