Using nodegit, how do I cancel a long running clone operation? Our repo is like 3GB, the user may want to abort it because it's taking too much time.
Can I just reject the promise? Like so?
var cloneRepository = NodeGit.Clone(cloneURL, localPath, cloneOptions);
...
if (abortCondition)
cloneRepository.reject();