Fix autosync issue by passing in repo in an object