File tree 3 files changed +9
-0
lines changed 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ impl Cache {
27
27
home : home_env,
28
28
xdg_config_home : xdg_config_home_env,
29
29
ssh_prefix : _,
30
+ http_transport : _,
30
31
} : repository:: permissions:: Environment ,
31
32
repository:: permissions:: Config {
32
33
git_binary : use_installation,
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ pub struct Environment {
72
72
pub git_prefix : git_sec:: Permission ,
73
73
/// Control if resources pointed to by `SSH_*` prefixed environment variables can be used (like `SSH_ASKPASS`)
74
74
pub ssh_prefix : git_sec:: Permission ,
75
+ /// Control if environment variables to configure the HTTP transport, like `http_proxy` may be used.
76
+ ///
77
+ /// Note that those http-transport related environment variables prefixed with `GIT_` are falling under the
78
+ /// `git_prefix` permission, like `GIT_HTTP_USER_AGENT`.
79
+ pub http_transport : git_sec:: Permission ,
75
80
}
76
81
77
82
impl Environment {
@@ -82,6 +87,7 @@ impl Environment {
82
87
home : git_sec:: Permission :: Allow ,
83
88
git_prefix : git_sec:: Permission :: Allow ,
84
89
ssh_prefix : git_sec:: Permission :: Allow ,
90
+ http_transport : git_sec:: Permission :: Allow ,
85
91
}
86
92
}
87
93
}
@@ -126,6 +132,7 @@ impl Permissions {
126
132
home : deny,
127
133
ssh_prefix : deny,
128
134
git_prefix : deny,
135
+ http_transport : deny,
129
136
}
130
137
} ,
131
138
}
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ mod http {
49
49
proxy_authenticate,
50
50
user_agent,
51
51
connect_timeout,
52
+ verbose : _,
52
53
backend,
53
54
} = http_options ( & repo, None ) ;
54
55
assert_eq ! (
You can’t perform that action at this time.
0 commit comments