Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
patch: Correctly format oid
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Sellier <[email protected]>
  • Loading branch information
cloudhead committed Oct 20, 2022
1 parent bc96def commit 9fa2cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ fn pretty_commit_version(
revision_oid: &git::Oid,
repo: &Option<git::Repository>,
) -> anyhow::Result<String> {
let mut oid = common::fmt::oid(revision_oid);
let mut oid = term::format::secondary(common::fmt::oid(revision_oid));
let mut branches: Vec<String> = vec![];

if let Some(repo) = repo {
Expand All @@ -577,7 +577,7 @@ fn pretty_commit_version(
if !branches.is_empty() {
oid = format!(
"{} {}",
term::format::secondary(oid),
oid,
term::format::yellow(format!("({})", branches.join(", "))),
);
}
Expand Down

0 comments on commit 9fa2cf8

Please sign in to comment.