diff --git a/scanner.py b/scanner.py index a58caa85..98d8a4d8 100644 --- a/scanner.py +++ b/scanner.py @@ -259,7 +259,7 @@ def clone_or_pull_git_repository(git_url): print(f"Pulling {repo_name} failed: {e}") else: try: - Repo.clone_from(git_url, repo_dir, recursive=True) + Repo.clone_from(git_url, repo_dir, multi_options = ["--depth=1", "--single-branch" "--recurse-submodules"]) print(f"Cloning {repo_name}...") except Exception as e: print(f"Cloning {repo_name} failed: {e}") @@ -525,4 +525,4 @@ updated_node_info = update_custom_nodes() print("\n# 'extension-node-map.json' file is generated.\n") gen_json(updated_node_info) -print("\nDONE.\n") \ No newline at end of file +print("\nDONE.\n")