Commit 55df41d3 authored by jinkaiqiang's avatar jinkaiqiang

fix:checkout前pull改为fetch

parent 975fd787
Pipeline #76673 passed with stage
in 16 seconds
......@@ -69,7 +69,7 @@ where B.default_version=1'''
def checkout(self, project_no):
try:
# 仓库要先更新一次,万一切换新的分支就会挂了
repo.git.pull()
repo.git.fetch()
repo.git.checkout(project_no)
repo.git.pull()
except GitCommandError as e:
......
Markdown is supported
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