summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-07 23:17:43 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-05-07 23:17:43 (GMT)
commitb0121fb3f279a9cf13aff9da060e742aef3a83fa (patch)
tree26d975a964cbd7fcbc99e5fc4b1428e7b1d953e6 /t
parent7f498065e9bf85f6f3e954ec57dedf56fec29e01 (diff)
parent6bd20358a9b831b3b545284188871bc844245c25 (diff)
downloadgit-b0121fb3f279a9cf13aff9da060e742aef3a83fa.zip
git-b0121fb3f279a9cf13aff9da060e742aef3a83fa.tar.gz
git-b0121fb3f279a9cf13aff9da060e742aef3a83fa.tar.bz2
Merge branch 'jc/gitlink' into next
* jc/gitlink: write-tree: --prefix=<path> read-tree: --prefix=<path>/ option.
Diffstat (limited to 't')
-rwxr-xr-xt/t0000-basic.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh
index cf33989..2c9bbb5 100755
--- a/t/t0000-basic.sh
+++ b/t/t0000-basic.sh
@@ -195,6 +195,20 @@ test_expect_success \
'git-ls-tree -r output for a known tree.' \
'diff current expected'
+test_expect_success \
+ 'writing partial tree out with git-write-tree --prefix.' \
+ 'ptree=$(git-write-tree --prefix=path3)'
+test_expect_success \
+ 'validate object ID for a known tree.' \
+ 'test "$ptree" = 21ae8269cacbe57ae09138dcc3a2887f904d02b3'
+
+test_expect_success \
+ 'writing partial tree out with git-write-tree --prefix.' \
+ 'ptree=$(git-write-tree --prefix=path3/subp3)'
+test_expect_success \
+ 'validate object ID for a known tree.' \
+ 'test "$ptree" = 3c5e5399f3a333eddecce7a9b9465b63f65f51e2'
+
################################################################
rm .git/index
test_expect_success \