resolve tree entry by path in a repo