Commit 3536c168 by Miha

- need_pack was not set to 0 when local fetch was already present causing …

- need_pack was not set to 0 when local fetch was already present causing  negotiate_fetch access violation
parent 300f4412
......@@ -42,8 +42,10 @@ static int maybe_want(git_remote *remote, git_remote_head *head, git_odb *odb, g
return 0;
/* If we have the object, mark it so we don't ask for it */
if (git_odb_exists(odb, &head->oid))
if (git_odb_exists(odb, &head->oid)) {
head->local = 1;
remote->need_pack = 0;
}
else
remote->need_pack = 1;
......
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