Skip to content

Commit 61951ff

Browse files
committed
potential fix for broken pipe ci tests failing
1 parent b92803b commit 61951ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git2-hooks/src/hookspath.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ impl HookPaths {
184184
(child.stdin.take(), stdin)
185185
{
186186
use std::io::Write;
187-
stdin_handle.write_all(input)?;
187+
// Ignore broken pipe errors - the hook may exit without reading stdin
188+
let _ = stdin_handle.write_all(input);
188189
drop(stdin_handle);
189190
}
190191

0 commit comments

Comments
 (0)