Detect wrong repo type, Close #6