clone: prevent --reference to a shallow repository