Clone tree and commit in pathToEntry results