Import implementation from js-git