diff --git a/src/cmdlib.sh b/src/cmdlib.sh index 9f6fbab0ac..bc021f186d 100755 --- a/src/cmdlib.sh +++ b/src/cmdlib.sh @@ -239,6 +239,11 @@ runcompose() { local overridesdir=${workdir}/overrides local tmp_overridesdir=${TMPDIR}/override local override_manifest="${tmp_overridesdir}"/coreos-assembler-override-manifest.yaml + + local git_timestamp="January 1 1970" + if [ -d "${configdir_gitrepo}/.git" ]; then + git_timestamp=$(git -C "${configdir_gitrepo}" show -s --format=%ci HEAD) + fi if [ -d "${overridesdir}" ] || [ -n "${ref_is_temp}" ] || [ -d "${configdir}/overlay" ]; then mkdir "${tmp_overridesdir}" cat > "${override_manifest}" <> "${override_manifest}" <> "${override_manifest}" << EOF ostree-override-layers: - cosa-bin-overlay