Fix repoGetPatch()