lib/repo: Fix loading commitstate with parent repos
authorColin Walters <walters@verbum.org>
Wed, 25 Oct 2017 17:13:17 +0000 (13:13 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 26 Oct 2017 07:06:50 +0000 (07:06 +0000)
commit90ebd48f6aaf45c47b48c44354359f973dcf22a8
tree16a4b10422b6d18bfe011e375066cf7ae7bd796a
parent0760ce128183e1bdaaa08bd3d6b17e275b81418a
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
src/libostree/ostree-repo.c