-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'js/partial-clone-connectivity-check'
During an initial "git clone --depth=..." partial clone, it is pointless to spend cycles for a large portion of the connectivity check that enumerates and skips promisor objects (which by definition is all objects fetched from the other side). This has been optimized out. * js/partial-clone-connectivity-check: t/perf: add perf script for partial clones clone: do faster object check for partial clones
- Loading branch information
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
|
||
test_description='performance of partial clones' | ||
. ./perf-lib.sh | ||
|
||
test_perf_default_repo | ||
|
||
test_expect_success 'enable server-side config' ' | ||
git config uploadpack.allowFilter true && | ||
git config uploadpack.allowAnySHA1InWant true | ||
' | ||
|
||
test_perf 'clone without blobs' ' | ||
rm -rf bare.git && | ||
git clone --no-local --bare --filter=blob:none . bare.git | ||
' | ||
|
||
test_perf 'checkout of result' ' | ||
rm -rf worktree && | ||
mkdir -p worktree/.git && | ||
tar -C bare.git -cf - . | tar -C worktree/.git -xf - && | ||
git -C worktree config core.bare false && | ||
git -C worktree checkout -f | ||
' | ||
|
||
test_done |