return promise on import from git/hg