Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
guiHive
Commits
0adea086
Commit
0adea086
authored
Jul 10, 2017
by
Matthieu Muffato
Browse files
Checkout the server branch if needed
parent
291947a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
guihive-deploy.sh
guihive-deploy.sh
+12
-0
No files found.
guihive-deploy.sh
View file @
0adea086
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment