mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-01-19 11:45:13 +08:00
robust update patch
This commit is contained in:
8
scripts/update-fix.py
Normal file
8
scripts/update-fix.py
Normal file
@ -0,0 +1,8 @@
|
||||
import git
|
||||
|
||||
repo_path = "."
|
||||
if repo.is_dirty():
|
||||
repo.git.stash()
|
||||
|
||||
repo = git.Repo(repo_path)
|
||||
repo.git.pull(rebase=True)
|
||||
Reference in New Issue
Block a user