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:
parent
013da67aa1
commit
d8ab40777d
|
|
@ -34,7 +34,7 @@ impl TempRepository {
|
||||||
.collect();
|
.collect();
|
||||||
let path = root
|
let path = root
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.join(format!("{rid}.{random}"))
|
.join(format!("{}.{random}", rid.canonical()))
|
||||||
.with_extension(Self::EXT);
|
.with_extension(Self::EXT);
|
||||||
let repo = Repository::create(&path, rid, info)?;
|
let repo = Repository::create(&path, rid, info)?;
|
||||||
Ok(Self { repo, path })
|
Ok(Self { repo, path })
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue