Skip to content
Snippets Groups Projects
Commit 46ca1138 authored by Ronald Jäpel's avatar Ronald Jäpel
Browse files

Fix error message on enter context delete code_backup

parent a5963a33
No related branches found
No related tags found
No related merge requests found
......@@ -470,18 +470,21 @@ class BaseRepo:
"""
self._git.checkout("master")
self._git.checkout('-b', branch_name) # equivalent to $ git checkout -b %branch_name
try:
# Remove previous code backup
code_backup_path = os.path.join(self.working_dir, "logs", "code_backup")
delete_path(code_backup_path)
except Exception as e:
print(e)
try:
# Remove previous logs
logs_path = os.path.join(self.working_dir, "logs")
delete_path(logs_path)
except Exception as e:
print(e)
code_backup_path = os.path.join(self.working_dir, "logs", "code_backup")
logs_path = os.path.join(self.working_dir, "logs")
if os.path.exists(code_backup_path):
try:
# Remove previous code backup
delete_path(code_backup_path)
except Exception as e:
print(e)
if os.path.exists(logs_path):
try:
# Remove previous logs
delete_path(logs_path)
except Exception as e:
print(e)
def apply_stashed_changes(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment