From ff0f94911cc69b6614e0885b02bce01f431209bb Mon Sep 17 00:00:00 2001 From: David Monroe Date: Wed, 21 Jun 2023 21:00:16 +0200 Subject: [PATCH] Always set commit/author time to epoch If the contents of the tree have not changed, we don't want cargo update to fetch anything. This requires the commit in the packfile to remain stable. --- src/high_level.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/high_level.rs b/src/high_level.rs index b06a1e6..c49f165 100644 --- a/src/high_level.rs +++ b/src/high_level.rs @@ -99,7 +99,7 @@ impl GitRepository { let commit_user = CommitUserInfo { name, email, - time: time::OffsetDateTime::now_utc(), + time: time::OffsetDateTime::UNIX_EPOCH, }; let commit = PackFileEntry::Commit(Commit { -- libgit2 1.7.2