Fixes #6182 - Dynflowized repository update

- [x] Dynflowize repository update
- [x] Fix old tests
- [x] Make new tests
Why not just pass in the `content_type` to this function?