From b137c5393a6dfcb2c77958796288588e5167383b Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 14 Mar 2018 15:47:56 +0000 Subject: [PATCH] xbps-src: ensure GIT_CMD is invoked on the distdir --- common/environment/setup/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/environment/setup/git.sh b/common/environment/setup/git.sh index 2932624a072..870fa984e05 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 log --pretty='%ct' -n1 HEAD)" + export SOURCE_DATE_EPOCH="$($GIT_CMD -C ${XBPS_DISTDIR} log --pretty='%ct' -n1 HEAD)" fi fi