feat(#2302): thread &Ident through agent path builders
This commit is contained in:
parent
1286029947
commit
bf644cc126
23 changed files with 168 additions and 85 deletions
|
|
@ -420,7 +420,12 @@ pub async fn ensure_meta_remote(name: &str) -> Result<()> {
|
|||
if !is_present().await {
|
||||
return Ok(());
|
||||
}
|
||||
let proposed_dir = Coordinator::agent_proposed_dir(name);
|
||||
// A malformed name has no proposed config repo (repos are only created
|
||||
// under a validated Ident), so there's nothing to wire — no-op.
|
||||
let Ok(agent) = hive_host_sock::Ident::parse(name) else {
|
||||
return Ok(());
|
||||
};
|
||||
let proposed_dir = Coordinator::agent_proposed_dir(&agent);
|
||||
if !proposed_dir.join(".git").exists() {
|
||||
return Ok(());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue