Skip to content

Commit 45d2a2d

Browse files
committed
msys2-runtime: start with a partial clone of Cygwin's tags
And only the `cygwin-*` ones, too. This makes the clone a lot faster. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent df83428 commit 45d2a2d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

update-scripts/version/msys2-runtime

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ esac
2626
# `updpkgsums` requires the bare clone `msys2-runtime` to exist
2727
git init --bare msys2-runtime &&
2828
git --git-dir=msys2-runtime config remote.origin.url https://github.com/cygwin/cygwin &&
29-
git --git-dir=msys2-runtime fetch --tags https://github.com/cygwin/cygwin &&
29+
# pretend to be a partial clone
30+
git --git-dir=msys2-runtime config remote.origin.promisor true &&
31+
git --git-dir=msys2-runtime config remote.origin.partialCloneFilter blob:none &&
32+
git --git-dir=msys2-runtime config remote.origin.fetch 'refs/tags/cygwin-*:refs/tags/cygwin-*' &&
33+
git --git-dir=msys2-runtime fetch origin &&
3034

3135
git clone --bare msys2-runtime src/msys2-runtime &&
3236
git --git-dir=src/msys2-runtime config remote.origin.url https://github.com/git-for-windows/msys2-runtime &&

0 commit comments

Comments
 (0)