signed push: remove duplicated protocol info
[gitweb.git] / transport.c
index 662421bb5e076177f0fc320330287d3da50303a5..07fdf864941879cc4836db2e4f7812736992facc 100644 (file)
@@ -480,6 +480,9 @@ static int set_git_option(struct git_transport_options *opts,
                                die("transport: invalid depth option '%s'", value);
                }
                return 0;
+       } else if (!strcmp(name, TRANS_OPT_PUSH_CERT)) {
+               opts->push_cert = !!value;
+               return 0;
        }
        return 1;
 }
@@ -823,6 +826,7 @@ static int git_transport_push(struct transport *transport, struct ref *remote_re
        args.progress = transport->progress;
        args.dry_run = !!(flags & TRANSPORT_PUSH_DRY_RUN);
        args.porcelain = !!(flags & TRANSPORT_PUSH_PORCELAIN);
+       args.push_cert = !!(flags & TRANSPORT_PUSH_CERT);
 
        ret = send_pack(&args, data->fd, data->conn, remote_refs,
                        &data->extra_have);