Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-04-04 00:30:07 +0400
committerVicent Marti <tanoku@gmail.com>2013-04-22 18:50:50 +0400
commit8842c75f172ed94be4ad11521d4083e97d740785 (patch)
treee864a71de4ec4745a57057541f5e5366a53c84cc /src/checkout.c
parentc4e91d4500bdd357fbf7378bc10648a482513fa6 (diff)
What has science done.
Diffstat (limited to 'src/checkout.c')
-rw-r--r--src/checkout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c
index 81dc5e3da..bb2f90606 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 = blob->odb_object->buffer;
+ filtered.size = blob->odb_object->cached.size;
/* ... and make sure it doesn't get unexpectedly freed */
dont_free_filtered = true;