INNER CODE UNIT · Python
source_date_epoch
XRPLF/rippled · package/build_pkg.py:180
def source_date_epoch() -> int:
"""The last commit's timestamp."""
# git refuses to read a checkout owned by another user, which is what a CI
# container or a bind mount hands it.
return int(
capture(
"git",
"-c",
f"safe.directory={SRC_DIR}",
"-C",
SRC_DIR,
"log",
"-1",
"--format=%ct",
)
)