common/environment: only load git commit date when in chroot.
This commit is contained in:
parent
f601448e8a
commit
d285f4dcdb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue