server-info: skip empty lines.
[gitweb.git] / send-pack.c
index a41bbe5ecfdff6fd7cea1bfc3d3415ba57867f2b..5bc2f017bca8e9c92352b19469b3c1021844ddec 100644 (file)
@@ -272,7 +272,7 @@ static int send_pack(int in, int out, int nr_refspec, char **refspec)
        packet_flush(out);
        if (new_refs)
                pack_objects(out, remote_refs);
-       else
+       else if (ret == 0)
                fprintf(stderr, "Everything up-to-date\n");
        close(out);
        return ret;