summaryrefslogtreecommitdiff
path: root/src/checkout.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2013-01-17 13:11:57 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2013-01-17 15:17:32 -0600
commit6e959708e55316664379b9cecf53784c542d8a14 (patch)
tree68d4e05f116e5c0d94eea71f9561e15fc3538705 /src/checkout.c
parent34a4ad46e8ff306dca989bb591dc415e38480064 (diff)
downloadlibgit2-6e959708e55316664379b9cecf53784c542d8a14.tar.gz
cache should contain on-disk (filtered) file size
Diffstat (limited to 'src/checkout.c')
-rw-r--r--src/checkout.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/checkout.c b/src/checkout.c
index 411bf3be7..40f5732ed 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -724,10 +724,8 @@ static int blob_content_to_file(
error = buffer_to_file(
st, &filtered, path, opts->dir_mode, opts->file_open_flags, file_mode);
- if (!error) {
- st->st_size = blob->odb_object->raw.len;
+ if (!error)
st->st_mode = entry_filemode;
- }
cleanup:
git_filters_free(&filters);