An object-info test uses 'wc -c <two.t | xargs' to get the file size.
Update it to use the test_file_size() helper instead.
Mentored-by: Karthik Nayak <karthik.188@gmail.com>
Mentored-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cat >expect <<-EOF &&
size
- $(git rev-parse two:two.t) $(wc -c <two.t | xargs)
- $(git rev-parse two:two.t) $(wc -c <two.t | xargs)
+ $(git rev-parse two:two.t) $(test_file_size two.t)
+ $(git rev-parse two:two.t) $(test_file_size two.t)
0000
EOF