mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 18:02:58 +08:00
print stash message.
https://github.com/ltdrdata/ComfyUI-Manager/issues/976#issuecomment-2295670323
This commit is contained in:
parent
b02cb2b833
commit
f74d8cb470
@ -139,6 +139,7 @@ def gitpull(path):
|
|||||||
# Pull the latest changes from the remote repository
|
# Pull the latest changes from the remote repository
|
||||||
repo = git.Repo(path)
|
repo = git.Repo(path)
|
||||||
if repo.is_dirty():
|
if repo.is_dirty():
|
||||||
|
print(f"STASH: '{path}' is dirty.")
|
||||||
repo.git.stash()
|
repo.git.stash()
|
||||||
|
|
||||||
commit_hash = repo.head.commit.hexsha
|
commit_hash = repo.head.commit.hexsha
|
||||||
|
|||||||
@ -1680,6 +1680,7 @@ def git_repo_update_check_with(path, do_fetch=False, do_update=False, no_deps=Fa
|
|||||||
|
|
||||||
if do_update:
|
if do_update:
|
||||||
if repo.is_dirty():
|
if repo.is_dirty():
|
||||||
|
print(f"STASH: '{path}' is dirty.")
|
||||||
repo.git.stash()
|
repo.git.stash()
|
||||||
|
|
||||||
if f'{remote_name}/{branch_name}' not in repo.refs:
|
if f'{remote_name}/{branch_name}' not in repo.refs:
|
||||||
@ -1836,6 +1837,7 @@ def git_pull(path):
|
|||||||
repo = git.Repo(path)
|
repo = git.Repo(path)
|
||||||
|
|
||||||
if repo.is_dirty():
|
if repo.is_dirty():
|
||||||
|
print(f"STASH: '{path}' is dirty.")
|
||||||
repo.git.stash()
|
repo.git.stash()
|
||||||
|
|
||||||
if repo.head.is_detached:
|
if repo.head.is_detached:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user