From e981222768f3ccc9c24a6960a6c9be4c8839d3ea Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Thu, 14 Sep 2023 15:13:59 +0300 Subject: [PATCH] feat: add commit_date field to shuttle_index.json The commit date provides an easy method to compare two shuttle_index.json files and detect which of the files relates to a newer commit. This enables us to prevent a situation where an earlier shuttle_index overrides a later one. --- shuttle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/shuttle.py b/shuttle.py index 0cdf8a6..62fa246 100644 --- a/shuttle.py +++ b/shuttle.py @@ -79,6 +79,7 @@ class ShuttleConfig(): "shuttle": self.config["name"], "repo": list(repo.remotes[0].urls)[0], "commit": repo.commit().hexsha, + "commit_date": repo.commit().committed_date, "mux": mux_index, }