]> git.ipfire.org Git - thirdparty/git.git/blob - t/perf/p5600-clone-reference.sh
stash: handle staged changes in skip-worktree files correctly
[thirdparty/git.git] / t / perf / p5600-clone-reference.sh
1 #!/bin/sh
2
3 test_description='speed of clone --reference'
4 . ./perf-lib.sh
5
6 test_perf_default_repo
7
8 test_expect_success 'create shareable repository' '
9 git clone --bare . shared.git
10 '
11
12 test_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
22 test_perf 'clone --reference' '
23 rm -rf dst.git &&
24 git clone --no-local --bare --reference shared.git . dst.git
25 '
26
27 test_done