ci: git remote prune origin before git pull

This commit is contained in:
tangfangzhi 2022-08-23 18:15:28 +08:00
parent 63fd6f4cee
commit d4f19e7c5a
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ def check_docs() {
}
sh '''
cd ${WKC}
git remote prune origin
git pull >/dev/null
git fetch origin +refs/pull/${CHANGE_ID}/merge
git checkout -qf FETCH_HEAD