As per the documentation, Tree#getEntry is an async function and thus returns a Promise. See: https://www.nodegit.org/api/tree/#getEntry