mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove alternate git pull script
Former-commit-id: d86577109ade759c86fc97b51b32803457382a80
This commit is contained in:
parent
fdd92fb5ac
commit
3231541b3e
@ -9,34 +9,9 @@ stages:
|
|||||||
# - deploy
|
# - deploy
|
||||||
# - post-run
|
# - post-run
|
||||||
|
|
||||||
|
|
||||||
# our own git fetch command like https://gitlab.com/gitlab-org/gitlab-runner/blob/master/shells/abstract.go
|
|
||||||
# speeds up building because we skip the git clean and dont need any gitlab caches
|
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: none
|
|
||||||
before_script:
|
before_script:
|
||||||
- if [ -d .git ]; then
|
|
||||||
echo "is git dir";
|
|
||||||
else
|
|
||||||
git clone $CI_REPOSITORY_URL . ;
|
|
||||||
fi;
|
|
||||||
- rm -f .git/index.lock
|
|
||||||
- rm -f .git/shallow.lock
|
|
||||||
- rm -f .git/HEAD.lock
|
|
||||||
- rm -f .git/hocks/post-checkout
|
|
||||||
- git remote set-url origin $CI_REPOSITORY_URL
|
|
||||||
- git fetch origin --prune +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
|
|
||||||
- git checkout -f -q $CI_COMMIT_SHA
|
|
||||||
- if [ ! -z "${SOURCE_PROJECT}" -a "${SOURCE_PROJECT}" != " " ]; then
|
|
||||||
echo "THIS SEEMS TO BE A MERGE PIPELINE FROM ${SOURCE_PROJECT}/${SOURCE_BRANCH}";
|
|
||||||
git pull "https://gitlab.com/${SOURCE_PROJECT}/veloren.git" "${SOURCE_BRANCH}";
|
|
||||||
fi;
|
|
||||||
- git submodule sync --recursive
|
- git submodule sync --recursive
|
||||||
- git submodule update --remote --recursive
|
- git submodule update --remote --recursive
|
||||||
- git status
|
|
||||||
- if [ -d target ]; then
|
|
||||||
ls -la target;
|
|
||||||
fi;
|
|
||||||
|
|
||||||
clean-code:
|
clean-code:
|
||||||
stage: pre-build
|
stage: pre-build
|
||||||
|
Loading…
Reference in New Issue
Block a user