Skip to content

Commit

Permalink
Merge branch 'main' into support/3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuch committed Oct 30, 2023
2 parents 93df083 + 3c79d25 commit 15ecb20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ code/*/build
code/*/dist
geckodriver.log
hotfixes
lib/
pidfile
*.egg-info*
*.geany*
Expand Down
15 changes: 11 additions & 4 deletions code/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,27 @@ CURDIR="${BASH_SOURCE[0]}";RL="readlink";([[ `uname -s`=='Darwin' ]] || RL="$RL
while([ -h "${CURDIR}" ]) do CURDIR=`$RL "${CURDIR}"`; done
N="/dev/null";pushd .>$N;cd `dirname ${CURDIR}`>$N;CURDIR=`pwd`;popd>$N

# Our default branch
Zato_Default_Branch=support/3.2

# Always switch to a branch support first
git checkout "${Zato_Default_Branch}" 2>/dev/null || git checkout -b "${Zato_Default_Branch}" "origin/${Zato_Default_Branch}"

echo "*** Downloading updates ***"
git -C $CURDIR pull

# A optional, specific branch or commit provded on input
while getopts "c:" opt; do
case "$opt" in
c)
ZATO_BRANCH=$OPTARG
Zato_Branch=$OPTARG
;;
esac
done

if [[ -n "${ZATO_BRANCH}" ]];then
# Checkout a local branch/commit or create the branch from the remote one
git checkout "${ZATO_BRANCH}" 2>/dev/null || git checkout -b "${ZATO_BRANCH}" "origin/${ZATO_BRANCH}"
if [[ -n "${Zato_Branch}" ]];then
# Check out a local branch/commit or create the branch from the remote one
git checkout "${Zato_Branch}" 2>/dev/null || git checkout -b "${Zato_Branch}" "origin/${Zato_Branch}"
fi

echo Activating virtualenv in $CURDIR
Expand Down

0 comments on commit 15ecb20

Please sign in to comment.