From d8ab40777de7c08d893b1ee0b97711b49e24a124 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Sat, 11 Oct 2025 22:30:38 +0200 Subject: [PATCH] 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. --- crates/radicle/src/storage/git/temp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/radicle/src/storage/git/temp.rs b/crates/radicle/src/storage/git/temp.rs index d5e9798c..494b18db 100644 --- a/crates/radicle/src/storage/git/temp.rs +++ b/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 })