diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-07 16:17:43 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-07 16:17:43 -0700 |
commit | b0121fb3f279a9cf13aff9da060e742aef3a83fa (patch) | |
tree | 26d975a964cbd7fcbc99e5fc4b1428e7b1d953e6 /t | |
parent | 7f498065e9bf85f6f3e954ec57dedf56fec29e01 (diff) | |
parent | 6bd20358a9b831b3b545284188871bc844245c25 (diff) | |
download | git-b0121fb3f279a9cf13aff9da060e742aef3a83fa.tar.gz |
Merge branch 'jc/gitlink' into next
* jc/gitlink:
write-tree: --prefix=<path>
read-tree: --prefix=<path>/ option.
Diffstat (limited to 't')
-rwxr-xr-x | t/t0000-basic.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t0000-basic.sh b/t/t0000-basic.sh index cf33989b56..2c9bbb59b0 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 \ |