mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-16 10:50:43 +03:00
pull: scan_commit_object() - don't load variant twice
ostree_repo_load_commit already loaded the object, no need to load it twice. Closes: #595 Approved by: cgwalters
This commit is contained in:
parent
70d140d61c
commit
c9b158e9f2
@ -1137,10 +1137,6 @@ scan_commit_object (OtPullData *pull_data,
|
||||
is_partial = pull_data->legacy_transaction_resuming
|
||||
|| (commitstate & OSTREE_REPO_COMMIT_STATE_PARTIAL) > 0;
|
||||
|
||||
if (!ostree_repo_load_variant (pull_data->repo, OSTREE_OBJECT_TYPE_COMMIT, checksum,
|
||||
&commit, error))
|
||||
goto out;
|
||||
|
||||
/* PARSE OSTREE_SERIALIZED_COMMIT_VARIANT */
|
||||
g_variant_get_child (commit, 1, "@ay", &parent_csum);
|
||||
if (g_variant_n_children (parent_csum) > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user