Commit 4cef9c60 authored by jinkaiqiang's avatar jinkaiqiang

更新仓库代码

parent d9040bd6
Pipeline #28995 passed with stage
in 22 seconds
...@@ -41,7 +41,7 @@ def readonly_handler(func, path, execinfo): ...@@ -41,7 +41,7 @@ def readonly_handler(func, path, execinfo):
if os.path.exists(git_path): if os.path.exists(git_path):
if platform.system() == 'Linux': if platform.system() == 'Linux':
os.system(f"rm -rf {deploy_repo_path}") os.system(f"rm -rf {deploy_repo_path} && echo delete success")
time.sleep(1) time.sleep(1)
else: else:
shutil.rmtree(git_path, onerror=readonly_handler) shutil.rmtree(git_path, onerror=readonly_handler)
...@@ -49,7 +49,7 @@ if os.path.exists(git_path): ...@@ -49,7 +49,7 @@ if os.path.exists(git_path):
# docker环境线下老是出现问题,先用代码拉取 # docker环境线下老是出现问题,先用代码拉取
os.system(f'git clone {deploy_repo_path} {git_path}') os.system(f'git clone {deploy_repo_path} {git_path}')
repo = git.Repo(git_path) repo = git.Repo(git_path)
repo.git.pull()
class FlashAppLoader(AppLoaderBase): class FlashAppLoader(AppLoaderBase):
......
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