]> git.ipfire.org Git - thirdparty/git.git/blobdiff - csum-file.c
blame: drop unused parameter from maybe_changed_path
[thirdparty/git.git] / csum-file.c
index 53ce37f7ca42996dbfb4cf80e2127ea43496734d..0f35fa5ee47c5280b73c945a0043dea439917eb5 100644 (file)
@@ -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)