(1) Where a share of a dwelling-house belonging to an undivided family has been transferred to a person who is not a member of such family and such transferee sues for partition, the court shall, if any member of the family being a shareholder shall undertake to buy the share of such transferee, make a valuation of such share in such manner as it thinks fit and direct the sale of such share to such shareholder, and may give all necessary and proper directions in that behalf.
(2) If in any case described in sub-section (1) two or more members of the family being such shareholders severally undertake to buy such share, the court shall follow the procedure prescribed by sub-section (2) of the last foregoing section.