@@ -32,22 +32,21 @@ git --git-dir=msys2-runtime config remote.origin.partialCloneFilter blob:none &&
3232git --git-dir=msys2-runtime config remote.origin.fetch ' refs/tags/cygwin-*:refs/tags/cygwin-*' &&
3333git --git-dir=msys2-runtime fetch origin &&
3434
35- git clone --bare msys2-runtime src /msys2-runtime &&
36- git --git-dir=src/msys2-runtime config remote.origin.url https://github.com/git-for-windows/msys2-runtime &&
37- # pretend to be a partial clone
38- git --git-dir=src/ msys2-runtime config remote.origin.promisor true &&
39- git --git-dir=src/ msys2-runtime config remote.origin.partialCloneFilter blob:none ||
40- die " Failed to initialize the src/ msys2-runtime repository"
35+ git --git-dir= msys2-runtime config remote.g4w.url https://github.com/git-for-windows /msys2-runtime &&
36+ # pretend to be a partially-cloned remote, too
37+ git --git-dir=msys2-runtime config remote.g4w.promisor true &&
38+ git --git-dir=msys2-runtime config remote.g4w.partialCloneFilter blob:none &&
39+ git --git-dir=msys2-runtime fetch g4w $revision ||
40+ die " Failed to initialize the msys2-runtime repository"
4141
42- git --git-dir=src/msys2-runtime reset --soft " $revision " &&
4342previous_commit=" $( cat msys2-runtime.commit) " && {
44- test 0 = $( git --git-dir=src/ msys2-runtime rev-list --count " $revision ..$previous_commit " ) ||
43+ test 0 = $( git --git-dir=msys2-runtime rev-list --count " $revision ..$previous_commit " ) ||
4544 die " The revision $revision is not a direct descendant of $previous_commit "
4645} &&
4746
4847# update pkgver if needed
4948update_pkgver= &&
50- pkgver=$( git --git-dir=src/ msys2-runtime describe --match=' cygwin-[0-9]*' " $revision " ) &&
49+ pkgver=$( git --git-dir=msys2-runtime describe --match=' cygwin-[0-9]*' " $revision " ) &&
5150pkgver=${pkgver# cygwin-} &&
5251pkgver=${pkgver%% -* } &&
5352if test " $pkgver " ! = " $( sed -n ' s/^pkgver=\(.*\)/\1/p' PKGBUILD) "
6059fi &&
6160
6261# pre-fetch the required blobs
63- git --git-dir=src/ msys2-runtime fetch origin \
64- $( git --git-dir=src/ msys2-runtime -c core.abbrev=no \
62+ git --git-dir=msys2-runtime fetch g4w \
63+ $( git --git-dir=msys2-runtime -c core.abbrev=no \
6564 log --format=' %n' --raw " refs/tags/cygwin-$pkgver ..$revision " ^" $revision ^{/^Start.the.merging-rebase}" |
6665 cut -d ' ' -f 3,4 |
6766 tr ' ' ' \n' |
6867 grep -v ' ^0*$' |
6968 sort |
7069 uniq) &&
7170
71+ git --git-dir=msys2-runtime reset --soft " $revision " &&
72+ git --git-dir=msys2-runtime worktree add --no-checkout src/msys2-runtime &&
73+
7274sh -x ./update-patches.sh &&
7375if test -n " $update_pkgver "
7476then
0 commit comments