mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-12-06 02:30:26 -08:00
feat(Bash/Installer): configure remote and pull branch in conf/config.sh (#8488)
Co-authored-by: BytesGalore <3903215+BytesGalore@users.noreply.github.com>
This commit is contained in:
parent
54cf80bf29
commit
1b8c23cbee
2 changed files with 15 additions and 1 deletions
|
|
@ -47,7 +47,11 @@ function inst_configureOS() {
|
|||
|
||||
function inst_updateRepo() {
|
||||
cd "$AC_PATH_ROOT"
|
||||
git pull origin $(git rev-parse --abbrev-ref HEAD)
|
||||
if [ ! -z $INSTALLER_PULL_FROM ]; then
|
||||
git pull "$ORIGIN_REMOTE" "$INSTALLER_PULL_FROM"
|
||||
else
|
||||
git pull "$ORIGIN_REMOTE" $(git rev-parse --abbrev-ref HEAD)
|
||||
fi
|
||||
}
|
||||
|
||||
function inst_resetRepo() {
|
||||
|
|
|
|||
10
conf/dist/config.sh
vendored
10
conf/dist/config.sh
vendored
|
|
@ -29,6 +29,16 @@ BINPATH="$AC_PATH_ROOT/env/dist"
|
|||
# DATAPATH="$BINPATH/bin"
|
||||
# DATAPATH_ZIP="$DATAPATH/data.zip"
|
||||
|
||||
# azerothcore's official remote source address to pull from
|
||||
# by default git will fetch form the azrothcore remote
|
||||
# You can change it to "origin" if you want to fetch/pull from the set remote
|
||||
ORIGIN_REMOTE="https://github.com/azerothcore/azerothcore-wotlk.git"
|
||||
|
||||
# Branch configuration for the installer to pull from.
|
||||
# By default git will select the current working branch
|
||||
# You can set it to "master" if you want the latest updates
|
||||
INSTALLER_PULL_FROM=
|
||||
|
||||
##############################################
|
||||
#
|
||||
# COMPILER_CONFIGURATIONS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue