ComfyUI-Manager/scripts/update-fix.py
2023-07-25 12:35:42 +09:00

9 lines
124 B
Python

import git
repo_path = "."
if repo.is_dirty():
repo.git.stash()
repo = git.Repo(repo_path)
repo.git.pull(rebase=True)