From 67fd042d4b6f405027112c5b7b4c834f5c522ef1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 25 Mar 2014 09:55:40 +0100 Subject: [PATCH] xbps-src: make alternative repos work again with git branches. --- common/xbps-src/xbps-src.sh | 1 + 1 file changed, 1 insertion(+) 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