Skip to content

Commit

Permalink
git_backend: remove redundant copy back of author timestamp
Browse files Browse the repository at this point in the history
Only the committer timestamp can be updated inside a loop.
  • Loading branch information
yuja committed Oct 30, 2023
1 parent f5aa739 commit 1788b50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/git_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1788b50

Please sign in to comment.