Dr.Lt.Data
2024-08-21 00:45:04 +09:00
parent b02cb2b833
commit f74d8cb470
2 changed files with 3 additions and 0 deletions

View File

@@ -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