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();
|
||||
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 })
|
||||
|
|
|
|||
Loading…
Reference in New Issue