aboutsummaryrefslogtreecommitdiffstats
path: root/t/perf/p5313-pack-objects.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/perf/p5313-pack-objects.sh')
-rwxr-xr-xt/perf/p5313-pack-objects.sh18
1 files changed, 8 insertions, 10 deletions
diff --git a/t/perf/p5313-pack-objects.sh b/t/perf/p5313-pack-objects.sh
index cd6dd3abb7..98748b0e20 100755
--- a/t/perf/p5313-pack-objects.sh
+++ b/t/perf/p5313-pack-objects.sh
@@ -55,23 +55,21 @@ test_all_with_args () {
test_size "shallow pack size with $parameter" '
test_file_size out
'
-}
-
-for version in 1 2
-do
- export version
-
- test_all_with_args --name-hash-version=$version
- test_perf "repack with --name-hash-version=$version" '
- git repack -adf --name-hash-version=$version
+ test_perf "repack with $parameter" '
+ git repack -adf $parameter
'
- test_size "repack size with --name-hash-version=$version" '
+ test_size "repack size with $parameter" '
gitdir=$(git rev-parse --git-dir) &&
pack=$(ls $gitdir/objects/pack/pack-*.pack) &&
test_file_size "$pack"
'
+}
+
+for version in 1 2
+do
+ test_all_with_args --name-hash-version=$version
done
test_all_with_args --path-walk