зеркало из https://github.com/microsoft/git.git
t5004: fix issue with empty archive test and bsdtar
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>
This commit is contained in:
Родитель
bd54cf17a4
Коммит
24676f02ba
|
@ -28,7 +28,7 @@ check_dir() {
|
|||
}
|
||||
|
||||
test_expect_success 'tar archive of empty tree is empty' '
|
||||
git archive --format=tar HEAD >empty.tar &&
|
||||
git archive --format=tar HEAD: >empty.tar &&
|
||||
make_dir extract &&
|
||||
"$TAR" xf empty.tar -C extract &&
|
||||
check_dir extract
|
||||
|
|
Загрузка…
Ссылка в новой задаче