jdx/mise · error
a repository url is required
Error message
a repository url is required
What it means
Input validation in origin set_inner(): the URL passed to `mise bootstrap dotfiles origin set` was empty or whitespace after trimming, so there is no repository to connect to. Fires on `... origin set ""` or a missing argument.
Source
Thrown at src/system/history/sync/origin.rs:74
);
return Err(match result {
Err(err) => err.wrap_err(message),
Ok(()) => eyre::eyre!(message),
});
}
}
result
}
async fn set_inner(
store: &Store,
tracked: &TrackedSet,
opts: &SetOptions,
accepted: &mut bool,
preview_lock: &mut Option<fslock::LockFile>,
) -> Result<()> {
if opts.url.trim().is_empty() {
bail!("a repository url is required");
}
let repo = store
.repo()
.ok_or_else(|| eyre::eyre!("connecting a setup repository requires git"))?;
let state_dir = store.state_dir();
// This is the disposable preview repository. The connected repository's
// remote-tracking ref remains untouched unless the connection is confirmed.
let remote = Remote::new(repo, &opts.url);
if !remote.fetch(&opts.branch)? && repo.ref_oid(UPSTREAM_REF)?.is_some() {
repo.delete_ref(UPSTREAM_REF)?;
}
let upstream = repo.ref_oid(UPSTREAM_REF)?;
let repo_state = format::detect(repo, upstream.as_deref())?;
repo_state.check()?;
run::capture_now(store, tracked);
let shared = share::current(repo, tracked)?;
// the connection as it was: another repository or branch starts from aView on GitHub (pinned to afd2eddd3a)
Solutions
- Supply a valid repository URL to `origin set`
- Use `origin --remove` instead if the intent was to disconnect
- Re-run set with a non-empty trimmed URL
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/system/history/sync/origin.rs:74 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@afd2eddd3a (2026-09-09).
Data as JSON: /api/errors/2d0d6a4ea6decf2a.
Report an issue: GitHub.