Skip to content

Commit 60bb5f2

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 339bce2 commit 60bb5f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/perf/p5303-many-packs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ repack_into_n () {
2828
push @commits, $_ if $. % 5 == 1;
2929
}
3030
print reverse @commits;
31-
' "$1" >pushes
31+
' "$1" >pushes &&
3232

3333
# create base packfile
3434
head -n 1 pushes |
35-
git pack-objects --delta-base-offset --revs staging/pack
35+
git pack-objects --delta-base-offset --revs staging/pack &&
3636

3737
# and then incrementals between each pair of commits
3838
last= &&

0 commit comments

Comments
 (0)