summaryrefslogtreecommitdiff
path: root/t/perf/p5303-many-packs.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2021-02-23 02:25:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-23 07:30:52 (GMT)
commit60bb5f2f5d0c8a71254f31fa5d3d3fe42792aaf8 (patch)
tree8147877b5af289d5525bf793fb831003dc17207f /t/perf/p5303-many-packs.sh
parent339bce27f4f2a6f3bfab3e708429c810f4030c43 (diff)
downloadgit-60bb5f2f5d0c8a71254f31fa5d3d3fe42792aaf8.zip
git-60bb5f2f5d0c8a71254f31fa5d3d3fe42792aaf8.tar.gz
git-60bb5f2f5d0c8a71254f31fa5d3d3fe42792aaf8.tar.bz2
p5303: add missing &&-chains
These are in a helper function, so the usual chain-lint doesn't notice them. This function is still not perfect, as it has some git invocations on the left-hand-side of the pipe, but it's primary purpose is timing, not finding bugs or correctness issues. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/p5303-many-packs.sh')
-rwxr-xr-xt/perf/p5303-many-packs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/perf/p5303-many-packs.sh b/t/perf/p5303-many-packs.sh
index ce0c42c..d90d714 100755
--- a/t/perf/p5303-many-packs.sh
+++ b/t/perf/p5303-many-packs.sh
@@ -28,11 +28,11 @@ repack_into_n () {
push @commits, $_ if $. % 5 == 1;
}
print reverse @commits;
- ' "$1" >pushes
+ ' "$1" >pushes &&
# create base packfile
head -n 1 pushes |
- git pack-objects --delta-base-offset --revs staging/pack
+ git pack-objects --delta-base-offset --revs staging/pack &&
# and then incrementals between each pair of commits
last= &&