From f74d8cb47075e748633b1b44b84451a1e6be99e2 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Wed, 21 Aug 2024 00:45:04 +0900 Subject: [PATCH] print stash message. https://github.com/ltdrdata/ComfyUI-Manager/issues/976#issuecomment-2295670323 --- git_helper.py | 1 + glob/manager_core.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/git_helper.py b/git_helper.py index e1fce2f2..365bfa90 100644 --- a/git_helper.py +++ b/git_helper.py @@ -139,6 +139,7 @@ def gitpull(path): # Pull the latest changes from the remote repository repo = git.Repo(path) if repo.is_dirty(): + print(f"STASH: '{path}' is dirty.") repo.git.stash() commit_hash = repo.head.commit.hexsha diff --git a/glob/manager_core.py b/glob/manager_core.py index a8854f62..d7ce10ef 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -1680,6 +1680,7 @@ def git_repo_update_check_with(path, do_fetch=False, do_update=False, no_deps=Fa if do_update: if repo.is_dirty(): + print(f"STASH: '{path}' is dirty.") repo.git.stash() if f'{remote_name}/{branch_name}' not in repo.refs: @@ -1836,6 +1837,7 @@ def git_pull(path): repo = git.Repo(path) if repo.is_dirty(): + print(f"STASH: '{path}' is dirty.") repo.git.stash() if repo.head.is_detached: