Use ostree_commit_get_parent in ost_get_prev_commit.
This commit is contained in:
parent
634541f722
commit
23ad6c0310
@ -634,10 +634,7 @@ ost_get_prev_commit(OstreeRepo *repo, char *checksum)
|
|||||||
&commit, &tmp_error))
|
&commit, &tmp_error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
g_variant_get_child (commit, 1, "@ay", &parent_csum_v);
|
ret = ostree_commit_get_parent (commit);
|
||||||
if (g_variant_n_children (parent_csum_v) == 0)
|
|
||||||
goto out;
|
|
||||||
ret = ostree_checksum_from_bytes_v (parent_csum_v);
|
|
||||||
|
|
||||||
out:
|
out:
|
||||||
g_clear_error (&tmp_error);
|
g_clear_error (&tmp_error);
|
||||||
|
Loading…
Reference in New Issue
Block a user