diff options
| author | Vicent Marti <vicent@github.com> | 2014-03-03 15:05:26 +0100 |
|---|---|---|
| committer | Vicent Marti <vicent@github.com> | 2014-03-03 15:05:26 +0100 |
| commit | 0511b15c82a6af253d9bd18ddeed85f8afd28ddd (patch) | |
| tree | c028e6881d07e43d21218d0150e71d81f9b4030a /src/fetch.c | |
| parent | bb3687c5a8180c39d12b437ca1822ac43482b26f (diff) | |
| parent | b43f35fde2fa977870280d685b6e96418b82752e (diff) | |
| download | libgit2-0511b15c82a6af253d9bd18ddeed85f8afd28ddd.tar.gz | |
Merge pull request #2141 from ravselj/development
BUGFIX - Fetching twice from the same remote causes a segfault
Diffstat (limited to 'src/fetch.c')
| -rw-r--r-- | src/fetch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fetch.c b/src/fetch.c index 5bf2b93c1..c7d2c83a1 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -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; |
