pull: Also fetch detached commitmeta files
These will contain GPG signatures and the like in the future, so we should fetch them now.
This commit is contained in:
1 parent
10cf4ccabc
commit
7d72a4b941
4 files changed
+138
-42
No files matched your search
@@ -31,3 +31,11 @@ cd checkout-origin-main
|
||||
assert_file_has_content firstfile '^first$'
|
||||
assert_file_has_content baz/cow '^moo$'
|
||||
echo "ok pull contents"
|
||||
|
||||
cd ${test_tmpdir}
|
||||
ostree --repo=ostree-srv/gnomerepo commit -b main -s "Metadata string" --add-detached-metadata-string=SIGNATURE=HANCOCK --tree=ref=main
|
||||
${CMD_PREFIX} ostree --repo=repo pull origin main
|
||||
${CMD_PREFIX} ostree --repo=repo fsck
|
||||
$OSTREE show --print-detached-metadata-key=SIGNATURE main > main-meta
|
||||
assert_file_has_content main-meta "HANCOCK"
|
||||
echo "ok pull detached metadata"
|
||||
@@ -291,3 +291,11 @@ assert_file_has_content test2-meta "CUTE"
|
||||
$OSTREE show --print-detached-metadata-key=SIGNATURE test2 > test2-meta
|
||||
assert_file_has_content test2-meta "HANCOCK"
|
||||
echo "ok metadata commit with strings"
|
||||
|
||||
cd ${test_tmpdir}
|
||||
rm repo2 -rf
|
||||
mkdir repo2
|
||||
${CMD_PREFIX} ostree --repo=repo2 init
|
||||
${CMD_PREFIX} ostree --repo=repo2 pull-local repo
|
||||
echo "ok pull-local after commit metadata"
|
||||
|
||||
Reference in new issue
Block a user