68fed663479de3c9e0e5e64aa7eb4498706e0519
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