Skip to content

Commit

Permalink
Added rm to the existing dir to allow re:clone on scheduled mirror (D…
Browse files Browse the repository at this point in the history
…OI-USGS#4599)

The isis dir exists on multiple CI runs. We want a clean mirror, no matter what might happen upstream (e.g., a history re-write). Added an rm to blast the isis directory from the GitLab instance as the history on that repo could be out of date (e.g., if a history change is pushed to the ISIS GitHub repo and not the GitLab repo). This changes means only the GitHub repo contains the history of record for the project.
  • Loading branch information
jlaura authored Aug 17, 2021
1 parent 0ff43aa commit 96f1970
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ clone_github:
script:
- echo $SOURCE_REPOSITORY
- git config --global http.sslVerify false # Epic....
- rm -rf isis # Needed to allow multiple CI runs
- git clone --mirror $SOURCE_REPOSITORY isis
- cd isis
- git remote remove origin
Expand Down

0 comments on commit 96f1970

Please sign in to comment.