lib/commit: respect SOURCE_DATE_EPOCH for commit timestamp
authorLuca BRUNO <luca.bruno@coreos.com>
Tue, 22 Jun 2021 10:42:36 +0000 (10:42 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Tue, 22 Jun 2021 12:15:18 +0000 (12:15 +0000)
commit70a8f56ce134a718b9b09a7ca14de7513865e516
treeda0e3ab7cf3e7a89d087f188955347f9f2d538e5
parent47b7b1efc27291a6e2a0f732ade7db310d377044
lib/commit: respect SOURCE_DATE_EPOCH for commit timestamp

This tweaks `ostree_repo_write_commit` so that it checks for the
envinroment variable `SOURCE_DATE_EPOCH` as a way to override
the current time, which is used as the commit timestamp.

Ref: https://reproducible-builds.org/docs/source-date-epoch/
Ref: https://reproducible-builds.org/specs/source-date-epoch/
Makefile-tests.am
src/libostree/ostree-repo-commit.c
tests/test-commit-timestamp.sh [new file with mode: 0755]