Merge branch 'bc/rev-parse-parseopt-fix'
[gitweb.git] / builtin / receive-pack.c
index 65d89078ab885dce2838a4e01bca7205d804108a..29a0f3b75fb02dfa2a02c325816453e36baaa55a 100644 (file)
@@ -743,7 +743,7 @@ static int run_and_feed_hook(const char *hook_name, feed_fn feed,
                size_t n;
                if (feed(feed_state, &buf, &n))
                        break;
-               if (write_in_full(proc.in, buf, n) != n)
+               if (write_in_full(proc.in, buf, n) < 0)
                        break;
        }
        close(proc.in);