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