From d285f4dcdb12409b05c54358058c4da7686d0932 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 2 Mar 2016 07:45:51 +0100 Subject: [PATCH] common/environment: only load git commit date when in chroot. --- common/environment/setup/git.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/environment/setup/git.sh b/common/environment/setup/git.sh index fc5c56225ef..9bb32903a34 100644 --- a/common/environment/setup/git.sh +++ b/common/environment/setup/git.sh @@ -1,6 +1,6 @@ # If XBPS_USE_BUILD_MTIME is enabled in conf file don't continue. -# only run this, if SOURCE_DATE_EPOCH isn't set -if [ -z "$XBPS_USE_BUILD_MTIME" ] && [ -z "${SOURCE_DATE_EPOCH}" ]; then +# only run this, if SOURCE_DATE_EPOCH isn't set. +if [ -z "$XBPS_USE_BUILD_MTIME" -a -z "${SOURCE_DATE_EPOCH}" -a -n "$IN_CHROOT" ]; then if command -v chroot-git &>/dev/null; then GIT_CMD=$(command -v chroot-git) elif command -v git &>/dev/null; then