X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5001-archive-attr.sh;h=f47d8717fdd93cf8ebf356c2675511567782335e;hb=9b55aa03daebf43067021b7d58abea249229987b;hp=02d4d2284d8bcf9637dbd6a670e376b4ae9f7af1;hpb=ac39c5f554f80b5baddea9a6e6b5ff53cb92b6e3;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