Skip to content

Commit f5adaa5

Browse files
derrickstoleegitster
authored andcommitted
transport.c: avoid "whitelist"
The word "whitelist" has cultural implications that are not inclusive. Thankfully, it is not difficult to reword and avoid its use. The GIT_ALLOW_PROTOCOL environment variable was referred to as a "whitelist", but the word "allow" is already part of the variable. Replace "whitelist" with "allow_list" in these cases to demonstrate that we are processing a list of allowed protocols. Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0011f94 commit f5adaa5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

transport.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ static int external_specification_len(const char *url)
940940
return strchr(url, ':') - url;
941941
}
942942

943-
static const struct string_list *protocol_whitelist(void)
943+
static const struct string_list *protocol_allow_list(void)
944944
{
945945
static int enabled = -1;
946946
static struct string_list allowed = STRING_LIST_INIT_DUP;
@@ -1020,9 +1020,9 @@ static enum protocol_allow_config get_protocol_config(const char *type)
10201020

10211021
int is_transport_allowed(const char *type, int from_user)
10221022
{
1023-
const struct string_list *whitelist = protocol_whitelist();
1024-
if (whitelist)
1025-
return string_list_has_string(whitelist, type);
1023+
const struct string_list *allow_list = protocol_allow_list();
1024+
if (allow_list)
1025+
return string_list_has_string(allow_list, type);
10261026

10271027
switch (get_protocol_config(type)) {
10281028
case PROTOCOL_ALLOW_ALWAYS:

0 commit comments

Comments
 (0)