Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle/storage: Fix temporary path generation
Merged lorenz opened 6 months ago

impl Display for RepoId will produce a rid: prefix, which contains a colon, and this trips up various filesystems. Use RepoId::canonicial instead.

1 file changed +1 -1 013da67a d8ab4077
modified crates/radicle/src/storage/git/temp.rs
@@ -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 })