Repository type detection