X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=t%2Ft5000-tar-tree.sh;h=5dffb8e1e535b47269821b24816dd9465388f9a8;hb=d1c5f2a42d7b5c0e3d3862212dea1f09809c4963;hp=abce66921c0d7a478271ece31329bb52b579b159;hpb=f4cedd483e5bc4b9553dbc40e084548f7f3bf2ab;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 -)