No longer hard-code the Git branch
This commit is contained in:
parent
fc22495415
commit
9dfb105785
|
@ -19,6 +19,7 @@
|
||||||
#environment
|
#environment
|
||||||
DEBUG=
|
DEBUG=
|
||||||
DEVNULL="/dev/null"
|
DEVNULL="/dev/null"
|
||||||
|
GIT_BRANCH="master"
|
||||||
HOMEPAGE="https://www.defora.org"
|
HOMEPAGE="https://www.defora.org"
|
||||||
PACKAGE=
|
PACKAGE=
|
||||||
PROGNAME="deforaos-release.sh"
|
PROGNAME="deforaos-release.sh"
|
||||||
|
@ -201,8 +202,10 @@ _release_fetch_cvs()
|
||||||
|
|
||||||
_release_fetch_git()
|
_release_fetch_git()
|
||||||
{
|
{
|
||||||
$DEBUG $GIT checkout master || return 2
|
if [ -n "$GIT_BRANCH" ]; then
|
||||||
$DEBUG $GIT pull origin master
|
$DEBUG $GIT checkout "$GIT_BRANCH" || return 2
|
||||||
|
fi
|
||||||
|
$DEBUG $GIT pull
|
||||||
}
|
}
|
||||||
|
|
||||||
_release_tag()
|
_release_tag()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user