diff --git a/common/xbps-src/xbps-src.sh b/common/xbps-src/xbps-src.sh index 91059c62d77..b8c77529f2b 100644 --- a/common/xbps-src/xbps-src.sh +++ b/common/xbps-src/xbps-src.sh @@ -211,6 +211,7 @@ check_build_requirements() { cd $XBPS_DISTDIR _gitbranch="$(git symbolic-ref --short HEAD 2>/dev/null)" if [ -n "${_gitbranch}" -a "${_gitbranch}" != "master" ]; then + export XBPS_ALT_REPOSITORY="${_gitbranch}" export XBPS_REPOSITORY="${XBPS_REPOSITORY}/${_gitbranch}" msg_normal "Using \`$XBPS_REPOSITORY\' as local repository.\n" fi