projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add git-am, applymbox replacement.
[git.git]
/
t
/
t5000-tar-tree.sh
diff --git
a/t/t5000-tar-tree.sh
b/t/t5000-tar-tree.sh
index
abce669
..
5dffb8e
100755
(executable)
--- 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' \
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" \
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' \
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 &&
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' \
test_expect_success \
'extract tar archive' \
- '(cd b &&
tar
xf -) <b.tar'
+ '(cd b &&
$TAR
xf -) <b.tar'
test_expect_success \
'validate filenames' \
test_expect_success \
'validate filenames' \
@@
-80,7
+80,7
@@
test_expect_success \
test_expect_success \
'extract tar archive with prefix' \
test_expect_success \
'extract tar archive with prefix' \
- '(cd c &&
tar
xf -) <c.tar'
+ '(cd c &&
$TAR
xf -) <c.tar'
test_expect_success \
'validate filenames with prefix' \
test_expect_success \
'validate filenames with prefix' \