mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-19 11:24:18 +08:00
Force remove project dir if not a git directory
This commit is contained in:
parent
5d91f858a4
commit
83848415b5
@ -37,7 +37,7 @@ before_script:
|
||||
build:
|
||||
script:
|
||||
- |
|
||||
ls &&
|
||||
[ -d "$CI_PROJECT_DIR" -a ! -d "$CI_PROJECT_DIR/.git" ] && rm -rf "$CI_PROJECT_DIR" &&
|
||||
[ -d "$CI_PROJECT_DIR" ] || git clone "$CI_BUILD_REPO" "$CI_PROJECT_DIR" &&
|
||||
cd "$CI_PROJECT_DIR" &&
|
||||
git remote set-url origin "$CI_BUILD_REPO" &&
|
||||
|
||||
Loading…
Reference in New Issue
Block a user