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

Add correct cleanup of backup code from previous branches

parent de73a519
No related branches found
No related tags found
No related merge requests found
...@@ -251,6 +251,11 @@ class BaseRepo: ...@@ -251,6 +251,11 @@ 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")
shutil.rmtree(code_backup_path, ignore_errors=True)
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