mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-06 01:12:27 +00:00
remove stash complexity, because could pop changes without being able to stash anything
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user