Skip to content

Commit

Permalink
t/perf: avoid redundant use of cat
Browse files Browse the repository at this point in the history
Take care to redirect stdin, otherwise the output of wc would also contain
the file name.

Signed-off-by: Beat Bolli <[email protected]>
Acked-by: Taylor Blau <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Beat Bolli authored and gitster committed Mar 16, 2024
1 parent 47c0f24 commit 108e18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/perf/repos/inflate-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 108e18a

Please sign in to comment.