fix:去除current_head()返回值中的\n

\n会导致文件写入失败
This commit is contained in:
mrbeanc
2023-12-21 14:25:40 +08:00
parent 2dc58245e7
commit a459a0922e
7 changed files with 24 additions and 21 deletions

View File

@@ -59,10 +59,7 @@ pub fn handle_command() {
Command::Rm { files, cached } => {
println!("rm: {:?}, cached= {}", files, cached);
}
Command::Commit {
message,
allow_empty,
} => {
Command::Commit { message, allow_empty, } => {
commit(message, allow_empty);
}
}