Replace with newer version from js-git as used by tedit.