diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-07-02 09:59:01 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-07-02 09:59:01 -0700 |
| commit | ca463101c8978910c45d9a053dc1af07d42a8664 (patch) | |
| tree | 66e0f54a02bf160b2476427202f9cbc3e92527e2 /remote-curl.c | |
| parent | Merge branch 'jc/fuzz-sans-curl' (diff) | |
| parent | remote: drop checks for zero-url case (diff) | |
| download | git-ca463101c8978910c45d9a053dc1af07d42a8664.tar.gz git-ca463101c8978910c45d9a053dc1af07d42a8664.zip | |
Merge branch 'jk/remote-wo-url'
Memory ownership rules for the in-core representation of
remote.*.url configuration values have been straightened out, which
resulted in a few leak fixes and code clarification.
* jk/remote-wo-url:
remote: drop checks for zero-url case
remote: always require at least one url in a remote
t5801: test remote.*.vcs config
t5801: make remote-testgit GIT_DIR setup more robust
remote: allow resetting url list
config: document remote.*.url/pushurl interaction
remote: simplify url/pushurl selection
remote: use strvecs to store remote url/pushurl
remote: transfer ownership of memory in add_url(), etc
remote: refactor alias_url() memory ownership
archive: fix check for missing url
Diffstat (limited to 'remote-curl.c')
| -rw-r--r-- | remote-curl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remote-curl.c b/remote-curl.c index f8c6bd0826..4adcf25ed6 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -1576,7 +1576,7 @@ int cmd_main(int argc, const char **argv) if (argc > 2) { end_url_with_slash(&url, argv[2]); } else { - end_url_with_slash(&url, remote->url[0]); + end_url_with_slash(&url, remote->url.v[0]); } http_init(remote, url.buf, 0); |
