Repository.xs: tree parameter to diff() may be undefined
Changes: update