| 167 | } |
| 168 | |
| 169 | static void remote_clear(struct remote *remote) |
| 170 | { |
| 171 | free((char *)remote->name); |
| 172 | free((char *)remote->foreign_vcs); |
| 173 | |
| 174 | strvec_clear(&remote->url); |
| 175 | strvec_clear(&remote->pushurl); |
| 176 | |
| 177 | refspec_clear(&remote->push); |
| 178 | refspec_clear(&remote->fetch); |
| 179 | |
| 180 | free((char *)remote->receivepack); |
| 181 | free((char *)remote->uploadpack); |
| 182 | FREE_AND_NULL(remote->http_proxy); |
| 183 | FREE_AND_NULL(remote->http_proxy_authmethod); |
| 184 | string_list_clear(&remote->server_options, 0); |
| 185 | string_list_clear(&remote->negotiation_restrict, 0); |
| 186 | string_list_clear(&remote->negotiation_include, 0); |
| 187 | } |
| 188 | |
| 189 | static void add_merge(struct branch *branch, const char *name) |
| 190 | { |
no test coverage detected