Addon Manager: Clean up backup directories

This commit is contained in:
Chris Hennes
2022-09-15 13:12:43 -05:00
parent c6f731dd47
commit d77584db10
3 changed files with 3 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ class InstallWorkbenchWorker(QtCore.QThread):
will revert to a clean clone."""
self.status_message.emit("Updating module...")
with self.repo.git_lock:
if not os.path.exists(clonedir + os.sep + ".git"):
if not os.path.exists(os.path.join(clonedir, ".git")):
self.git_manager.repair(self.repo.url, clonedir)
try:
self.git_manager.update(clonedir)