Skip to content

Commit

Permalink
AddonManager:Correct funcion name
Browse files Browse the repository at this point in the history
  • Loading branch information
chennes committed Jan 11, 2022
1 parent 70d61b9 commit 4cc744c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/AddonManager/addonmanager_workers.py
Expand Up @@ -1219,14 +1219,14 @@ def run_git_clone(self, clonedir: str) -> None:
# NOTE: There is no way to interrupt this process in GitPython: someday we should
# support pygit2/libgit2 so we can actually interrupt this properly.
repo = git.Repo.clone_from(self.repo.url, clonedir, progress=self.git_progress)
if current_thread.isInterruptRequested():
if current_thread.isInterruptionRequested():
return

# Make sure to clone all the submodules as well
if repo.submodules:
repo.submodule_update(recursive=True)

if current_thread.isInterruptRequested():
if current_thread.isInterruptionRequested():
return

if self.repo.branch in repo.heads:
Expand Down

0 comments on commit 4cc744c

Please sign in to comment.