send-pack: fix capability-sending logic
[gitweb.git] / builtin / send-pack.c
index c4d42113c2c4202c5e0671999ac6b53db73628d0..5c6999555254b78403ad99ae86b3a9204b5fe953 100644 (file)
@@ -306,7 +306,7 @@ int send_pack(struct send_pack_args *args,
                        char *new_hex = sha1_to_hex(ref->new_sha1);
                        int quiet = quiet_supported && (args->quiet || !args->progress);
 
-                       if (!cmds_sent && (status_report || use_sideband || args->quiet)) {
+                       if (!cmds_sent && (status_report || use_sideband || quiet)) {
                                packet_buf_write(&req_buf,
                                                 "%s %s %s%c%s%s%s agent=%s",
                                                 old_hex, new_hex, ref->name, 0,