ostree/fsck: Handle refspecs from ostree_repo_list_refs()
authorPhilip Withnall <withnall@endlessm.com>
Wed, 13 Dec 2017 12:51:59 +0000 (12:51 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 14 Dec 2017 14:18:44 +0000 (14:18 +0000)
commitb0e7b26921a7d6a6d5aa0295f91cfb9725d66b4c
tree6f44c4ea9b46af7512f64ac31d66a6c9de3bfed6
parent97bdb3b2714c07ba71ce25aadddee4182bc08118
ostree/fsck: Handle refspecs from ostree_repo_list_refs()

It seems ostree_repo_list_refs() can return refspecs as hash table keys,
as well as just ref names. Handle that by parsing them before trying to
use them as ref names.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1347
Approved by: cgwalters
src/ostree/ot-builtin-fsck.c