radicle/storage: Fix temporary path generation

`impl Display for RepoId` will produce a `rid:` prefix, which
contains a colon, and this trips up various filesystems. Use
`RepoId::canonicial` instead.
This commit is contained in:
Lorenz Leutgeb 2025-10-11 22:30:38 +02:00 committed by Fintan Halpenny
parent 013da67aa1
commit d8ab40777d
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ impl TempRepository {
.collect();
let path = root
.as_ref()
.join(format!("{rid}.{random}"))
.join(format!("{}.{random}", rid.canonical()))
.with_extension(Self::EXT);
let repo = Repository::create(&path, rid, info)?;
Ok(Self { repo, path })