mirror of
https://github.com/git/git.git
synced 2026-01-11 13:23:12 +09: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:
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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user