| 154 | } |
| 155 | |
| 156 | static int match_partial_url(const char *url, void *cb) |
| 157 | { |
| 158 | struct credential *c = cb; |
| 159 | struct credential want = CREDENTIAL_INIT; |
| 160 | int matches = 0; |
| 161 | |
| 162 | if (credential_from_potentially_partial_url(&want, url) < 0) |
| 163 | warning(_("skipping credential lookup for key: credential.%s"), |
| 164 | url); |
| 165 | else |
| 166 | matches = credential_match(&want, c, 0); |
| 167 | credential_clear(&want); |
| 168 | |
| 169 | return matches; |
| 170 | } |
| 171 | |
| 172 | static void credential_apply_config(struct repository *r, struct credential *c) |
| 173 | { |
nothing calls this directly
no test coverage detected