improve: print log for updated extension

This commit is contained in:
dr.lt.data
2023-09-19 09:47:59 +09:00
parent 30ee2ceb0f
commit 7688c08000
2 changed files with 24 additions and 6 deletions

View File

@@ -50,11 +50,17 @@ def gitpull(path):
if repo.is_dirty():
repo.git.stash()
commit_hash = repo.head.commit.hexsha
try:
origin = repo.remote(name='origin')
origin.pull(rebase=True)
repo.git.submodule('update', '--init', '--recursive')
print("CUSTOM NODE PULL: True")
new_commit_hash = repo.head.commit.hexsha
if commit_hash != new_commit_hash:
print("CUSTOM NODE PULL: True")
else:
print("CUSTOM NODE PULL: None")
except Exception as e:
print(e)
print("CUSTOM NODE PULL: False")