diff --git a/src/commands.rs b/src/commands.rs index fb7b00bc5..67bc34cbc 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -825,7 +825,7 @@ fn cmd_files( let mut repo_command = command.repo_helper(ui)?; let commit = repo_command.resolve_revision_arg(sub_matches)?; for (name, _value) in commit.tree().entries() { - ui.write(&ui.format_file_path(repo_command.repo().working_copy_path(), &name))?; + writeln!(ui, "{}", &ui.format_file_path(repo_command.repo().working_copy_path(), &name))?; } Ok(()) }