t5004: fix issue with empty archive test and bsdtar
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Wed, 10 Apr 2013 17:00:20 +0000 (19:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Apr 2013 19:26:14 +0000 (12:26 -0700)
bsdtar, which is the default tar on Mac OS X, handles empty archives
just fine but reports archives containing only a pax extended header
comment as damaged. Work around the issue by explicitly generating
the archive for the tree and not the commit, which causes git archive
to omit the commit hash comment record from the tar file.

Reported-by: BJ Hargrave <bj@bjhargrave.com>
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found