Fix incorrect repo url handling