remove stash complexity, because could pop changes without being able to stash anything

This commit is contained in:
didier
2021-05-08 17:18:32 +01:00
parent 09fa5ab94c
commit f26497130d

View File

@@ -588,14 +588,6 @@ def sha256sum(filename):
def update_terminal():
completed_process = subprocess.run(
"git stash", shell=True, check=False
)
if completed_process.returncode != 0:
print("Error stashing your changes!")
return completed_process.returncode
print("Changes stashed successfully.")
poetry_hash = sha256sum("poetry.lock")
completed_process = subprocess.run("git pull", shell=True, check=False)
@@ -604,12 +596,6 @@ def update_terminal():
return completed_process.returncode
print("Latest changes from remote pulled successfully.")
completed_process = subprocess.run("git stash pop", shell=True, check=False)
if completed_process.returncode != 0:
print("Error popping your changes!")
return completed_process.returncode
print("Changes popped successfully.")
new_poetry_hash = sha256sum("poetry.lock")
if poetry_hash == new_poetry_hash: