Unverified Commit 5b711335 by Laurence McGlashan Committed by GitHub

Update src/libgit2/fetch.c

Co-authored-by: Qix <Qix-@users.noreply.github.com>
parent e3bf6db5
...@@ -195,7 +195,7 @@ int git_fetch_negotiate(git_remote *remote, const git_fetch_options *opts) ...@@ -195,7 +195,7 @@ int git_fetch_negotiate(git_remote *remote, const git_fetch_options *opts)
*/ */
remote->nego.refs = (const git_remote_head * const *)remote->refs.contents; remote->nego.refs = (const git_remote_head * const *)remote->refs.contents;
remote->nego.count = remote->refs.length; remote->nego.count = remote->refs.length;
remote->nego.shallow_roots = git__malloc(sizeof(git_shallowarray)); remote->nego.shallow_roots = git__malloc(sizeof(*remote->nego.shallow_roots));
git_array_init(remote->nego.shallow_roots->array); git_array_init(remote->nego.shallow_roots->array);
......
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