mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-10 06:34:24 +08:00
10 lines
129 B
Python
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)
|