transport: remove git_transport_options.push_cert

This field was set in transport_set_option, but never read in the push code. The push code basically ignores the smart_options field entirely, and derives its options from the flags arguments to the push* callbacks. Note that in git_transport_push there are already several args set from flags that have no corresponding field in git_transport_options; after this change, push_cert is just like those. Signed-off-by: Dave Borowitz <dborowitz@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Dave Borowitz committed Aug 19, 2015 at 11:26 UTC 87c0d08b3d92c55c233c8a95294a2232a97d97eb
2 files changed -4
transport.c
-3
@@ -478,9 +478,6 @@ static int set_git_option(struct git_transport_options *opts,
478 die("transport: invalid depth option '%s'", value);
479 }
480 return 0;
481 - } else if (!strcmp(name, TRANS_OPT_PUSH_CERT)) {
482 - opts->push_cert = !!value;
483 - return 0;
481 }
482 return 1;
483 }
transport.h
-1
@@ -12,7 +12,6 @@ struct git_transport_options {
12 unsigned check_self_contained_and_connected : 1;
13 unsigned self_contained_and_connected : 1;
14 unsigned update_shallow : 1;
15 - unsigned push_cert : 1;
15 int depth;
16 const char *uploadpack;
17 const char *receivepack;