We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7fe9cb commit a4e2f54Copy full SHA for a4e2f54
asyncgit/src/sync/hooks.rs
@@ -24,7 +24,15 @@ impl From<git2_hooks::HookResult> for HookResult {
24
} => {
25
const ANSI_CLEAR: &str = "\x1B[H\x1B[2J\x1B[3J";
26
27
- let mut combined = format!("{stdout}{stderr}");
+ 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);
36
37
if let Some(trimmed) =
38
combined.strip_suffix(ANSI_CLEAR)
0 commit comments