Skip to content

Commit 87c0d08

Browse files
dborowitzgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b9299a2 commit 87c0d08

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

transport.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,6 @@ static int set_git_option(struct git_transport_options *opts,
478478
die("transport: invalid depth option '%s'", value);
479479
}
480480
return 0;
481-
} else if (!strcmp(name, TRANS_OPT_PUSH_CERT)) {
482-
opts->push_cert = !!value;
483-
return 0;
484481
}
485482
return 1;
486483
}

transport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ struct git_transport_options {
1212
unsigned check_self_contained_and_connected : 1;
1313
unsigned self_contained_and_connected : 1;
1414
unsigned update_shallow : 1;
15-
unsigned push_cert : 1;
1615
int depth;
1716
const char *uploadpack;
1817
const char *receivepack;

0 commit comments

Comments
 (0)