xbps-src: make alternative repos work again with git branches.

This commit is contained in:
Juan RP 2014-03-25 09:55:40 +01:00
parent b3afee907a
commit 67fd042d4b
1 changed files with 1 additions and 0 deletions

View File

@ -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