diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2013-01-17 13:11:57 -0600 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2013-01-17 15:17:32 -0600 |
commit | 6e959708e55316664379b9cecf53784c542d8a14 (patch) | |
tree | 68d4e05f116e5c0d94eea71f9561e15fc3538705 /src/checkout.c | |
parent | 34a4ad46e8ff306dca989bb591dc415e38480064 (diff) | |
download | libgit2-6e959708e55316664379b9cecf53784c542d8a14.tar.gz |
cache should contain on-disk (filtered) file size
Diffstat (limited to 'src/checkout.c')
-rw-r--r-- | src/checkout.c | 4 |
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); |