projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'jc/again'
[git.git]
/
t
/
t5000-tar-tree.sh
diff --git
a/t/t5000-tar-tree.sh
b/t/t5000-tar-tree.sh
index
5dffb8e
..
278eb66
100755
(executable)
--- a/
t/t5000-tar-tree.sh
+++ b/
t/t5000-tar-tree.sh
@@
-25,6
+25,7
@@
commit id embedding:
'
. ./test-lib.sh
'
. ./test-lib.sh
+TAR=${TAR:-tar}
test_expect_success \
'populate workdir' \
test_expect_success \
'populate workdir' \
@@
-33,6
+34,9
@@
test_expect_success \
mkdir a/bin &&
cp /bin/sh a/bin &&
ln -s a a/l1 &&
mkdir a/bin &&
cp /bin/sh a/bin &&
ln -s a a/l1 &&
+ (p=long_path_to_a_file && cd a &&
+ for depth in 1 2 3 4 5; do mkdir $p && cd $p; done &&
+ echo text >file_with_long_path) &&
(cd a && find .) | sort >a.lst'
test_expect_success \
(cd a && find .) | sort >a.lst'
test_expect_success \
@@
-41,8
+45,8
@@
test_expect_success \
find a -type l | xargs git-update-index --add &&
treeid=`git-write-tree` &&
echo $treeid >treeid &&
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" \
- git-commit-tree $treeid </dev/null
>.git/HEAD
'
+
git-update-ref HEAD $(
TZ=GMT GIT_COMMITTER_DATE="2005-05-27 22:00:00" \
+ git-commit-tree $treeid </dev/null
)
'
test_expect_success \
'git-tar-tree' \
test_expect_success \
'git-tar-tree' \
@@
-59,7
+63,7
@@
test_expect_success \
test_expect_success \
'git-get-tar-commit-id' \
'git-get-tar-commit-id <b.tar >b.commitid &&
test_expect_success \
'git-get-tar-commit-id' \
'git-get-tar-commit-id <b.tar >b.commitid &&
- diff .git/
HEAD
b.commitid'
+ diff .git/
$(git-symbolic-ref HEAD)
b.commitid'
test_expect_success \
'extract tar archive' \
test_expect_success \
'extract tar archive' \