aboutsummaryrefslogtreecommitdiffstats
path: root/t/perf/repos
diff options
context:
space:
mode:
authorBeat Bolli <bb@drbeat.li>2024-03-15 20:46:02 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-16 11:08:56 -0700
commit108e18acc332162c0dabd505ca7f0804d49f4d80 (patch)
tree35d7650935612eba09290a0e2d6324737e8f38be /t/perf/repos
parent47c0f24539b9ece018464011aed85361f0ce89ea (diff)
downloadgit-108e18acc332162c0dabd505ca7f0804d49f4d80.tar.gz
t/perf: avoid redundant use of cat
Take care to redirect stdin, otherwise the output of wc would also contain the file name. Signed-off-by: Beat Bolli <dev+git@drbeat.li> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/repos')
-rwxr-xr-xt/perf/repos/inflate-repo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/perf/repos/inflate-repo.sh b/t/perf/repos/inflate-repo.sh
index fcfc992b5b..412e4b450b 100755
--- a/t/perf/repos/inflate-repo.sh
+++ b/t/perf/repos/inflate-repo.sh
@@ -33,7 +33,7 @@ do
done
git ls-tree -r HEAD >GEN_src_list
-nr_src_files=$(cat GEN_src_list | wc -l)
+nr_src_files=$(wc -l <GEN_src_list)
src_branch=$(git symbolic-ref --short HEAD)