]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pkt-line.c
Merge branch 'pb/ref-filter-with-crlf'
[thirdparty/git.git] / pkt-line.c
index 844c253ccd9a9ee770fe494a0cce84f53dc8fed8..657a702927dbbdad837ec022e33cf30745a6e4ce 100644 (file)
@@ -471,6 +471,9 @@ int recv_sideband(const char *me, int in_stream, int out)
                        write_or_die(out, buf + 1, len - 1);
                        break;
                default: /* errors: message already written */
+                       if (scratch.len > 0)
+                               BUG("unhandled incomplete sideband: '%s'",
+                                   scratch.buf);
                        return sideband_type;
                }
        }