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: ...@@ -470,18 +470,21 @@ class BaseRepo:
""" """
self._git.checkout("master") self._git.checkout("master")
self._git.checkout('-b', branch_name) # equivalent to $ git checkout -b %branch_name self._git.checkout('-b', branch_name) # equivalent to $ git checkout -b %branch_name
try: code_backup_path = os.path.join(self.working_dir, "logs", "code_backup")
# Remove previous code backup logs_path = os.path.join(self.working_dir, "logs")
code_backup_path = os.path.join(self.working_dir, "logs", "code_backup") if os.path.exists(code_backup_path):
delete_path(code_backup_path) try:
except Exception as e: # Remove previous code backup
print(e)
try: delete_path(code_backup_path)
# Remove previous logs except Exception as e:
logs_path = os.path.join(self.working_dir, "logs") print(e)
delete_path(logs_path) if os.path.exists(logs_path):
except Exception as e: try:
print(e) # Remove previous logs
delete_path(logs_path)
except Exception as e:
print(e)
def apply_stashed_changes(self): 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