From 1788b5014e652659138216ac341906b7be9fff64 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Mon, 30 Oct 2023 19:39:31 +0900 Subject: [PATCH] git_backend: remove redundant copy back of author timestamp Only the committer timestamp can be updated inside a loop. --- lib/src/git_backend.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/src/git_backend.rs b/lib/src/git_backend.rs index 3d3c1d8ce1..418471d27c 100644 --- a/lib/src/git_backend.rs +++ b/lib/src/git_backend.rs @@ -836,9 +836,8 @@ impl Backend for GitBackend { } } }; - // Update the signatures to match the ones that were actually written to the - // object store - contents.author.timestamp.timestamp = MillisSinceEpoch(author.when().seconds() * 1000); + // Update the signature to match the one that was actually written to the object + // store contents.committer.timestamp.timestamp = MillisSinceEpoch(committer.when().seconds() * 1000); let mut mut_table = table.start_mutation();