Skip to content

Commit d25efdc

Browse files
committed
Revert "more trimming"
This reverts commit a4e2f54.
1 parent a4e2f54 commit d25efdc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

asyncgit/src/sync/hooks.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,7 @@ impl From<git2_hooks::HookResult> for HookResult {
2424
} => {
2525
const ANSI_CLEAR: &str = "\x1B[H\x1B[2J\x1B[3J";
2626

27-
let mut combined = stdout;
28-
29-
if let Some(trimmed) =
30-
combined.strip_suffix(ANSI_CLEAR)
31-
{
32-
combined.truncate(trimmed.len());
33-
}
34-
35-
combined.push_str(&stderr);
27+
let mut combined = format!("{stdout}{stderr}");
3628

3729
if let Some(trimmed) =
3830
combined.strip_suffix(ANSI_CLEAR)

0 commit comments

Comments
 (0)