Commit 560eee29 authored by jinkaiqiang's avatar jinkaiqiang

仓库要先更新一次,万一切换新的分支就会挂了

parent 4cef9c60
...@@ -68,6 +68,8 @@ where B.default_version=1''' ...@@ -68,6 +68,8 @@ where B.default_version=1'''
def checkout(self, project_no): def checkout(self, project_no):
try: try:
# 仓库要先更新一次,万一切换新的分支就会挂了
repo.git.pull()
repo.git.checkout(project_no) repo.git.checkout(project_no)
repo.git.pull() repo.git.pull()
except GitCommandError as e: 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