Code

set httpd port before sourcing lib-httpd
[git.git] / transport-helper.c
index 16c6641f03e36893f95daf4609d1d85e69ab3088..5078c7100f16e9d7ac08aad05e3797ad5b6626bc 100644 (file)
@@ -263,6 +263,8 @@ static int push_refs(struct transport *transport,
                strbuf_addstr(&buf, ref->name);
                strbuf_addch(&buf, '\n');
        }
+       if (buf.len == 0)
+               return 0;
 
        transport->verbose = flags & TRANSPORT_PUSH_VERBOSE ? 1 : 0;
        standard_options(transport);