core: Add "subpath" option to checkout

Will be used by ostbuild to extract e.g. /runtime or /devel from
artifacts.
This commit is contained in:
Colin Walters committed 2012-03-06 11:59:06 -05:00
1 parent 1f7d776a18
commit 4db485dd5f
2 files changed
+25 -6

No files matched your search

+7 -1
View File
@@ -19,7 +19,7 @@
set -e
echo "1..26"
echo "1..27"
. libtest.sh
@@ -190,3 +190,9 @@ cd ${test_tmpdir}
$OSTREE cat test2 /yet/another/tree/green > greenfile-contents
assert_file_has_content greenfile-contents "leaf"
echo "ok cat-file"
cd ${test_tmpdir}
$OSTREE checkout --subpath /yet/another test2 checkout-test2-subpath
cd checkout-test2-subpath
assert_file_has_content tree/green "leaf"
echo "ok checkout subpath"