diff options
author | Vicent Martà <vicent@github.com> | 2013-04-22 08:07:20 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-04-22 08:07:20 -0700 |
commit | d08dd728a80eb993d80ec30d8c9f9025664c8990 (patch) | |
tree | f5cf7daf3913578f57076c2efc94bfd1f728068c /src/checkout.c | |
parent | a92dd316079250b27cc933b1fd00cd6af88b88d9 (diff) | |
parent | d87715926049390a2417a2476742114ec966686a (diff) | |
download | libgit2-d08dd728a80eb993d80ec30d8c9f9025664c8990.tar.gz |
Merge pull request #1454 from libgit2/vmg/new-cache
New caching
Diffstat (limited to 'src/checkout.c')
-rw-r--r-- | src/checkout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c index 81dc5e3da..62a73d6d0 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -710,8 +710,8 @@ static int blob_content_to_file( git_vector filters = GIT_VECTOR_INIT; /* Create a fake git_buf from the blob raw data... */ - filtered.ptr = blob->odb_object->raw.data; - filtered.size = blob->odb_object->raw.len; + filtered.ptr = (void *)git_blob_rawcontent(blob); + filtered.size = (size_t)git_blob_rawsize(blob); /* ... and make sure it doesn't get unexpectedly freed */ dont_free_filtered = true; |