lib/repo: Fix loading commitstate with parent repos
authorColin Walters <walters@verbum.org>
Wed, 25 Oct 2017 17:13:17 +0000 (13:13 -0400)
committerSimon McVittie <smcv@debian.org>
Thu, 26 Oct 2017 23:19:45 +0000 (00:19 +0100)
commitd25cb914d7cca80936baefc2b5386332312b997a
tree4ec60ff7af06b20d5eadc2ae175331436a7094c0
parent4ccd956f78c7214145bf9b111e65d8bf003329c6
lib/repo: Fix loading commitstate with parent repos

This makes the code nicer too. Properly unit testing this though really wants
like a whole set of stuff around parent repos...but we do have coverage of the
non-parent path in the current pull tests.

Closes: https://github.com/ostreedev/ostree/issues/1306
Closes: #1308
Approved by: alexlarsson
Origin: upstream, 2017.13, commit:90ebd48f6aaf45c47b48c44354359f973dcf22a8

Gbp-Pq: Topic 2017.13
Gbp-Pq: Name lib-repo-Fix-loading-commitstate-with-parent-repos.patch
src/libostree/ostree-repo.c