]> git.ipfire.org Git - thirdparty/git.git/blame - t/perf/p5601-clone-reference.sh
Merge branch 'js/update-index-ignore-removal-for-skip-worktree'
[thirdparty/git.git] / t / perf / p5601-clone-reference.sh
CommitLineData
39b44ba7
JK
1#!/bin/sh
2
3test_description='speed of clone --reference'
4. ./perf-lib.sh
5
6test_perf_default_repo
7
8test_expect_success 'create shareable repository' '
9 git clone --bare . shared.git
10'
11
12test_expect_success 'advance base repository' '
13 # Do not use test_commit here; its test_tick will
14 # use some ancient hard-coded date. The resulting clock
15 # skew will cause pack-objects to traverse in a very
16 # sub-optimal order, skewing the results.
17 echo content >new-file-that-does-not-exist &&
18 git add new-file-that-does-not-exist &&
19 git commit -m "new commit"
20'
21
22test_perf 'clone --reference' '
23 rm -rf dst.git &&
24 git clone --no-local --bare --reference shared.git . dst.git
25'
26
27test_done