X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5001-archive-attr.sh;h=f47d8717fdd93cf8ebf356c2675511567782335e;hb=6f61eb201799ee83c3a82f1f097c18b3854c0c03;hp=02d4d2284d8bcf9637dbd6a670e376b4ae9f7af1;hpb=43176d1e4cddc4ab2f2f7dc6f3ba10513ffc2f2b;p=git.git diff --git a/t/t5001-archive-attr.sh b/t/t5001-archive-attr.sh index 02d4d2284..f47d8717f 100755 --- a/t/t5001-archive-attr.sh +++ b/t/t5001-archive-attr.sh @@ -57,6 +57,15 @@ test_expect_missing worktree/ignored test_expect_exists worktree/ignored-by-tree test_expect_missing worktree/ignored-by-worktree +test_expect_success 'git archive --worktree-attributes option' ' + git archive --worktree-attributes --worktree-attributes HEAD >worktree.tar && + (mkdir worktree2 && cd worktree2 && "$TAR" xf -) bare-archive.tar && test_cmp archive.tar bare-archive.tar