17 lines
		
	
	
		
			606 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			606 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| ```
 | |
| ```python
 | |
| --- a/main.py
 | |
| +++ b/main.py
 | |
| @@ -490,9 +490,6 @@
 | |
|                  origin = repo.remote(name='origin')
 | |
|                  origin.push()
 | |
|                  logger.info(f"Task {task_id}: Changes pushed to remote")
 | |
| -            # Remove the cloned repo directory after push
 | |
| -            if self.repo_path and os.path.exists(self.repo_path):
 | |
| -                shutil.rmtree(self.repo_path)
 | |
| -                logger.info(f"Task {task_id}: Removed cloned repo directory {self.repo_path}")
 | |
|          except Exception as e:
 | |
|              raise Exception(f"Failed to commit and push changes: {str(e)}")
 | |
| ```
 | |
| ```
 | 
