mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
47c0f24539
commit
108e18acc3
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user