Commit 0adea086 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Checkout the server branch if needed

parent 291947a0
......@@ -33,6 +33,8 @@ then
echo "'$GUIHIVE_VERSIONS_DIR' and/or '$EHIVE_VERSIONS_DIR' already exist. Press ctrl+c to exit now, or enter otherwise/"
read
fi
mkdir -p "$DEPLOY_LOCATION"
mkdir -p "$GUIHIVE_VERSIONS_DIR"
mkdir -p "$EHIVE_VERSIONS_DIR"
......@@ -97,6 +99,16 @@ link_guihive_version () {
}
## Checkout the server branch
if [ -e "$DEPLOY_LOCATION/README.md" ]
then
echo "$DEPLOY_LOCATION/README.md is there, assuming the server branch is checked out"
else
#safe_clone server "$GUIHIVE_CLONE_LOCATION" "$DEPLOY_LOCATION"
GIT_DIR="$GUIHIVE_CLONE_LOCATION" GIT_WORK_TREE="$DEPLOY_LOCATION" git checkout -qf 'server'
fi
## List of versions
# 1. First we list all the eHive stable branches + master and map them to their database versions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment