about summary refs log tree commit diff
path: root/third_party/git/csum-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/csum-file.c')
-rw-r--r--third_party/git/csum-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/git/csum-file.c b/third_party/git/csum-file.c
index 53ce37f7ca42..0f35fa5ee47c 100644
--- a/third_party/git/csum-file.c
+++ b/third_party/git/csum-file.c
@@ -157,7 +157,7 @@ void hashfile_checkpoint(struct hashfile *f, struct hashfile_checkpoint *checkpo
 {
 	hashflush(f);
 	checkpoint->offset = f->total;
-	checkpoint->ctx = f->ctx;
+	the_hash_algo->clone_fn(&checkpoint->ctx, &f->ctx);
 }
 
 int hashfile_truncate(struct hashfile *f, struct hashfile_checkpoint *checkpoint)