Decided that wasn't necessary after all.
Added update method to RepoController and refactored a bit.