X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2Ft5000-tar-tree.sh;h=5dffb8e1e535b47269821b24816dd9465388f9a8;hb=babfaba23d530e2818db62161825a65e582adbdc;hp=abce66921c0d7a478271ece31329bb52b579b159;hpb=b30245c8e92ecaf8fb877189d7620a5a9a205120;p=git.git diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index abce6692..5dffb8e1 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -37,8 +37,8 @@ test_expect_success \ test_expect_success \ 'add files to repository' \ - 'find a -type f | xargs git-update-cache --add && - find a -type l | xargs git-update-cache --add && + 'find a -type f | xargs git-update-index --add && + find a -type l | xargs git-update-index --add && treeid=`git-write-tree` && echo $treeid >treeid && TZ=GMT GIT_COMMITTER_DATE="2005-05-27 22:00:00" \ @@ -50,7 +50,7 @@ test_expect_success \ test_expect_success \ 'validate file modification time' \ - 'TZ=GMT tar tvf b.tar a/a | + 'TZ=GMT $TAR tvf b.tar a/a | awk \{print\ \$4,\ \(length\(\$5\)\<7\)\ ?\ \$5\":00\"\ :\ \$5\} \ >b.mtime && echo "2005-05-27 22:00:00" >expected.mtime && @@ -63,7 +63,7 @@ test_expect_success \ test_expect_success \ 'extract tar archive' \ - '(cd b && tar xf -)