xbps-src: s/git/chroot-git/g
This commit is contained in:
parent
67206a5e26
commit
af6ee5374e
|
@ -15,7 +15,7 @@ hook() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $XBPS_SRCPKGDIR
|
cd $XBPS_SRCPKGDIR
|
||||||
rev="$(git rev-parse --short HEAD)"
|
rev="$(chroot-git rev-parse --short HEAD)"
|
||||||
echo "${sourcepkg}:${rev}"
|
echo "${sourcepkg}:${rev}"
|
||||||
echo "${sourcepkg}:${rev}" > $GITREVS_FILE
|
echo "${sourcepkg}:${rev}" > $GITREVS_FILE
|
||||||
}
|
}
|
||||||
|
|
2
xbps-src
2
xbps-src
|
@ -221,7 +221,7 @@ check_build_requirements() {
|
||||||
if [ -z "$XBPS_ALT_REPOSITORY" ]; then
|
if [ -z "$XBPS_ALT_REPOSITORY" ]; then
|
||||||
pushd "$PWD" &>/dev/null
|
pushd "$PWD" &>/dev/null
|
||||||
cd $XBPS_DISTDIR
|
cd $XBPS_DISTDIR
|
||||||
_gitbranch="$(git symbolic-ref --short HEAD 2>/dev/null)"
|
_gitbranch="$(chroot-git symbolic-ref --short HEAD 2>/dev/null)"
|
||||||
if [ -n "${_gitbranch}" -a "${_gitbranch}" != "master" ]; then
|
if [ -n "${_gitbranch}" -a "${_gitbranch}" != "master" ]; then
|
||||||
export XBPS_ALT_REPOSITORY="${_gitbranch}"
|
export XBPS_ALT_REPOSITORY="${_gitbranch}"
|
||||||
export XBPS_REPOSITORY="${XBPS_REPOSITORY}/${_gitbranch}"
|
export XBPS_REPOSITORY="${XBPS_REPOSITORY}/${_gitbranch}"
|
||||||
|
|
Loading…
Reference in New Issue