fix bug in dupe_repo?()