Commit 10cba764 by Etienne Samson

remote: lower the default vector size to 8

As it is, this is space for 32 refs pointers, which feels a little much.
Lower it to 8, as it is the minimum vector size anyway.
parent 3652b83a
......@@ -261,7 +261,7 @@ static int create_internal(git_remote **out, const char *url, const git_remote_c
remote->repo = opts->repository;
if ((error = git_vector_init(&remote->refs, 32, NULL)) < 0 ||
if ((error = git_vector_init(&remote->refs, 8, NULL)) < 0 ||
(error = canonicalize_url(&canonical_url, url)) < 0)
goto on_error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment