Small change to storage log output

Previously it would show eg. `RefString(...)`.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier 2023-01-10 21:18:47 +01:00
parent a407c3a4f8
commit 66f0f87933
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -651,11 +651,11 @@ impl WriteRepository for Repository {
let head_ref = refname!("HEAD");
let (branch_ref, head) = self.canonical_head()?;
log::debug!("Setting ref {:?} -> {:?}", &branch_ref, head);
log::debug!("Setting ref: {} -> {}", &branch_ref, head);
self.raw()
.reference(&branch_ref, *head, true, "set-local-branch (radicle)")?;
log::debug!("Setting ref {:?} -> {:?}", head_ref, branch_ref);
log::debug!("Setting ref: {} -> {}", head_ref, branch_ref);
self.raw()
.reference_symbolic(&head_ref, &branch_ref, true, "set-head (radicle)")?;