jdx/mise · error
remote task path escapes its Git checkout
Error message
remote task path escapes its Git checkout: {} What it means
validate_remote_git_path canonicalized a remote task file path and it no longer starts inside the checkout root — a symlink or ../ traversal points outside the Git checkout. mise refuses to read/execute files outside what the repo pins.
Solutions
- Fix the path/symlink so it stays inside the remote task repository
- Use a regular file path relative to the checkout root
- Audit the repo for symlinks that escape the checkout
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/task/task_file_providers/remote_task_git.rs:81 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/8809ad4449ed491f.
Report an issue: GitHub.
Appendix: source
Thrown at src/task/task_file_providers/remote_task_git.rs:81
url_without_path: url_without_path.to_string(),
path: path.to_string(),
branch,
}
}
}
/// Ensure a remote task path resolves inside its Git checkout and points at a
/// regular file or directory.
pub(crate) fn validate_remote_git_path(
checkout_root: &Path,
path: &Path,
) -> Result<std::fs::Metadata> {
let metadata = path.symlink_metadata()?;
if !path
.canonicalize()?
.starts_with(checkout_root.canonicalize()?)
{
eyre::bail!(
"remote task path escapes its Git checkout: {}",
display_path(path)
);
}
if metadata.file_type().is_file() || metadata.file_type().is_dir() {
return Ok(metadata);
}
eyre::bail!(
"remote task path is not a regular file or directory: {}",
display_path(path)
)
}
impl RemoteTaskGit {
/// Make fetched task files executable while leaving task include directories intact.
fn prepare_remote_path(checkout_root: &Path, path: &Path) -> Result<()> {
if validate_remote_git_path(checkout_root, path)?
.file_type()View on GitHub (pinned to 533346cc37)