It was taking a copy of the repository configuration, modifying the original repository configuration (not the copy), then saving the copy to disk. Add a test. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #1667 Approved by: mwleeds