From 986d4dbc7d20df9b249ec91f312fa44b1541b0c2 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 24 Nov 2017 14:10:00 +0100 Subject: [PATCH] common/environment/setup/git.sh: ensure untracked files are checked. --- 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 f4dc28a27cb..486a7ac6fb7 100644 --- a/common/environment/setup/git.sh +++ b/common/environment/setup/git.sh @@ -11,7 +11,7 @@ if [ -z "${SOURCE_DATE_EPOCH}" -a -n "$IN_CHROOT" ]; then GIT_CMD=$(command -v git) fi # check if the template is under version control: - if $GIT_CMD -C ${XBPS_SRCPKGDIR}/${basepkg} status --porcelain template | grep "^?? " &> /dev/null; 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 .)"