From f26497130db59c5e119f9bdfffb69c8103b06b90 Mon Sep 17 00:00:00 2001 From: didier Date: Sat, 8 May 2021 17:18:32 +0100 Subject: [PATCH] remove stash complexity, because could pop changes without being able to stash anything --- gamestonk_terminal/main_helper.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/gamestonk_terminal/main_helper.py b/gamestonk_terminal/main_helper.py index b4fdfeec384..3937103db68 100644 --- a/gamestonk_terminal/main_helper.py +++ b/gamestonk_terminal/main_helper.py @@ -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: