summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-pull-local.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-07-22 15:42:56 -0400
committerColin Walters <walters@verbum.org>2014-07-22 15:43:33 -0400
commit9bd229dff58ddb96f08e9307a1a668efc3548db5 (patch)
treed4096d6807719f5526cb0fd18c67560b1bb1e4bf /src/ostree/ot-builtin-pull-local.c
parentcdaa9517afc5cd85da7c92ffa272417771632a07 (diff)
downloadostree-9bd229dff58ddb96f08e9307a1a668efc3548db5.tar.gz
pull-local: Write detached metadata into the correct repository
We want to write to the dest repo, not src. Noticed while reviewing this code for some other bug. https://bugzilla.gnome.org/show_bug.cgi?id=733579
Diffstat (limited to 'src/ostree/ot-builtin-pull-local.c')
-rw-r--r--src/ostree/ot-builtin-pull-local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-builtin-pull-local.c b/src/ostree/ot-builtin-pull-local.c
index b5b5728f..50b05a6f 100644
--- a/src/ostree/ot-builtin-pull-local.c
+++ b/src/ostree/ot-builtin-pull-local.c
@@ -91,7 +91,7 @@ import_one_object (OtLocalCloneData *data,
if (detached_meta)
{
- if (!ostree_repo_write_commit_detached_metadata (data->src_repo,
+ if (!ostree_repo_write_commit_detached_metadata (data->dest_repo,
checksum, detached_meta,
cancellable, error))
goto out;