Skip to content

Commit

Permalink
commitバグってたのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Apr 14, 2024
1 parent f77f830 commit 61c74ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/command/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,10 @@ fn generate_commit_object(tree_hash: String, message: String) -> anyhow::Result<
size: _,
hash: _,
} = &commit;
let parents: String = parents.iter().map(|p| format!("parent {p}")).join("\n");
let parents: String = parents.iter().map(|p| format!("\nparent {p}")).join("");

let content = indoc::formatdoc! {r#"
tree {tree}
{parents}
tree {tree}{parents}
author {author}
commiter {commiter}
Expand Down

0 comments on commit 61c74ec

Please sign in to comment.