diff --git a/common/environment/setup/git.sh b/common/environment/setup/git.sh index 486a7ac6fb7..2932624a072 100644 --- a/common/environment/setup/git.sh +++ b/common/environment/setup/git.sh @@ -14,6 +14,6 @@ if [ -z "${SOURCE_DATE_EPOCH}" -a -n "$IN_CHROOT" ]; then if $GIT_CMD -C ${XBPS_SRCPKGDIR}/${basepkg} status -u normal --porcelain template | grep "^?? " &> /dev/null; then export SOURCE_DATE_EPOCH="$(stat -c %Y ${XBPS_SRCPKGDIR}/${basepkg}/template)" else - export SOURCE_DATE_EPOCH="$($GIT_CMD -C ${XBPS_SRCPKGDIR}/${basepkg} log --pretty='%ct' -n1 .)" + export SOURCE_DATE_EPOCH="$($GIT_CMD log --pretty='%ct' -n1 HEAD)" fi fi diff --git a/etc/defaults.conf b/etc/defaults.conf index 2326184cfe3..bd1322921d5 100644 --- a/etc/defaults.conf +++ b/etc/defaults.conf @@ -121,6 +121,6 @@ XBPS_SUCMD="sudo /bin/sh -c" # [OPTIONAL] # Enable to use the standard mtime of files. Otherwise it will be rewritten to -# the last commit time of the package. +# the HEAD commit time. # #XBPS_USE_BUILD_MTIME=yes