ComfyUI-Manager/scripts/update-fix.py
2023-07-26 00:28:16 +09:00

10 lines
129 B
Python

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