§ 5013. Agreements for purchase by a corporation of its own shares. 1. An agreement for the purchase by a corporation of its own shares shall be enforceable by the stockholder and the corporation to the extent such purchase is permitted at the time of purchase by section five thousand twelve.
2. The possibility that a corporation may not be able to purchase its shares under section five thousand twelve shall not be a ground for denying to either party specific performance of an agreement for the purchase by a corporation of its own shares, if at the time for performance the corporation can purchase all or part of such shares under section five thousand twelve.