Skip to content

Transfer mise trust to review worktree - #115

Merged
nnutter merged 2 commits into
masterfrom
mise-trust
Nov 6, 2026
Merged

nnutter merged 2 commits into
masterfrom
mise-trust

Conversation

@nnutter

@nnutter nnutter commented Nov 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

Mise wraps Git so it refuses to read an untrusted mise.toml. The review
checkout lives under the repository's Git directory, so mise does not
inherit the source worktree's trust. Review checkout validation then
fails at the first Git command, before Timber can reset the checkout.

Copy the source worktree's trust state to the review checkout when the
checkout has a mise config. Copy trust in both directions: trust the
review checkout when the source is trusted, and untrust it when the
source is untrusted, so a review of an untrusted worktree cannot reuse
trust that an earlier review left behind.

Mirror the trust again after the reset because paranoid mise ties trust
to file contents, and a reset can change them.

Change-Id: I6f7397be4b751a066ede302c2ace1415ac5edd28
The fake mise records the working directory that the shell reports, which
is the physical path. macOS gives the temporary directory a symlinked
path, so the recorded directories never matched the ones the test built:
the trust state looked untrusted and the failure cases reported no error.

Resolve the temporary directories in the test, as other review tests do.

Change-Id: I0724689f4e2e77b7ee29eeb549518b4243527ca6
@nnutter
nnutter merged commit d7f20fb into master Nov 6, 2026
5 of 6 checks passed
@nnutter
nnutter deleted the mise-trust branch November 6, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant