t5000, t5003: simplify commit
authorRené Scharfe <l.s.r@web.de>
Sat, 5 Jul 2014 19:35:01 +0000 (21:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2014 21:10:13 +0000 (14:10 -0700)
commit21711ca4b2a387b587c90e0ad8a98170e4b006e4
tree65b14a2718b82817ba774a3e50163241cfc973f4
parent6f92e5ff3cdc813de8ef5327fd4bad492fb7d6c9
t5000, t5003: simplify commit

Add the whole directory of test files at once using git add instead of
calling git update-index on each of them and use git commit instead of
the plumbing commands write-tree, update-ref and commit-tree to build
the commit.  This simplifies the code considerably.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5000-tar-tree.sh
t/t5003-archive-zip.sh