Commit 27386dbc authored by Leo P. Singer's avatar Leo P. Singer
Browse files

Fix git fetch for branches in CD script

parent e35ed257
......@@ -277,8 +277,7 @@ release:
gsissh -T $REMOTE_HOST bash <<EOF
set -e
if [ ! -d .git ]; then git init; fi
git fetch ${CI_REPOSITORY_URL}
git fetch --tags ${CI_REPOSITORY_URL}
git fetch --tags ${CI_REPOSITORY_URL} $CI_COMMIT_SHA
git checkout -f $CI_COMMIT_SHA
EOF
# Reinstall and start (new session to reload bashrc).
......
Supports Markdown
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