mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-01-19 11:45:13 +08:00
fix: update-fix.py
This commit is contained in:
@ -1,9 +1,12 @@
|
||||
import git
|
||||
|
||||
repo_path = "."
|
||||
repo = git.Repo(repo_path)
|
||||
commit_hash = "a361cc1"
|
||||
|
||||
repo = git.Repo('.')
|
||||
|
||||
if repo.is_dirty():
|
||||
repo.git.stash()
|
||||
|
||||
repo.git.pull(rebase=True)
|
||||
|
||||
repo.git.update_ref("refs/remotes/origin/main", commit_hash)
|
||||
repo.remotes.origin.fetch()
|
||||
repo.git.pull("origin", "main")
|
||||
|
||||
Reference in New Issue
Block a user