From 01fc1375cece096ab2dec480b843ecdbc4f0d94e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 18 Jun 2017 18:24:05 -0400 Subject: Fix bug that sometimes made --spin fail with "fatal: Couldn't find remote ref HEAD" Tricky stdin buffering problem. An easier fix would have been: hSetBuffering stdin NoBuffering But that approach is less robust; even with NoBuffering, anything that uses hLookAhead causes 1 byte of buffering. And, any reads from stdin before hSetBuffering would still cause the problem. Instead, I used a bigger hammer that will always work. It involves a bit more CPU work, but this is data that is already being fed through ssh; copying it one more time won't cause a measurable performance impact. This commit was sponsored by Jack Hill on Patreon. --- debian/changelog | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debian/changelog') diff --git a/debian/changelog b/debian/changelog index d26e007c..086c82c0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,7 @@ propellor (4.0.6) UNRELEASED; urgency=medium + * Fix bug that sometimes made --spin fail with + "fatal: Couldn't find remote ref HEAD" * Display error and warning messages to stderr, not stdout. -- Joey Hess Sun, 18 Jun 2017 16:19:41 -0400 -- cgit v1.2.3