Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/perf/p5601-clone-reference.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / perf / p5601-clone-reference.sh` 27 lines ยท 682 bytes Raw Blame History 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