lib/repo: Properly list remotes of parent repos
authorMatthew Leeds <matthew.leeds@endlessm.com>
Tue, 5 Dec 2017 20:57:46 +0000 (12:57 -0800)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 8 Dec 2017 19:40:19 +0000 (19:40 +0000)
commit102f30f6cc601aeafd92481ff788bdd35e3f052d
treee8724e70e13df83364916b1f23cac10533baa4c7
parent9917887a3f6b1a9a6e9741a992c009352c0504ac
lib/repo: Properly list remotes of parent repos

This commit fixes an infinite loop that happens if you try to list the
remotes of a repo that has a parent repo set. It also adds a unit test
to ensure the right behavior, which is that both the child remotes and
parent remotes are listed.

Closes: #1366
Approved by: cgwalters
src/libostree/ostree-repo.c
tests/test-remote-add.sh