241 *path = sstrdup(p).ptr; |
241 *path = sstrdup(p).ptr; |
242 } else { |
242 } else { |
243 repo = calloc(1, sizeof(Repository)); |
243 repo = calloc(1, sizeof(Repository)); |
244 repo->name = strdup(""); |
244 repo->name = strdup(""); |
245 repo->decrypt_content = true; |
245 repo->decrypt_content = true; |
|
246 repo->authmethods = CURLAUTH_BASIC; |
246 if(url[ulen-1] == '/') { |
247 if(url[ulen-1] == '/') { |
247 repo->url = strdup(url); |
248 repo->url = strdup(url); |
248 *path = strdup("/"); |
249 *path = strdup("/"); |
249 } else if (strchr(url, '/')) { |
250 } else if (strchr(url, '/')) { |
250 repo->url = util_parent_path(url); |
251 repo->url = util_parent_path(url); |