Skip to content

Commit

Permalink
fix: import command problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Anas12091101 committed Nov 19, 2024
1 parent b44ba30 commit c530f6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/edx_sysadmin/git_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# pylint: disable=wrong-import-order

import importlib
import logging
import os
import re
Expand Down Expand Up @@ -335,8 +336,9 @@ def add_repo(repo, rdir_in=None, branch=None): # noqa: PLR0912, PLR0915, C901
loggers.append(logger)

try:
import_cmd = importlib.import_module("cms.djangoapps.contentstore.management.commands.import")
management.call_command(
"import",
import_cmd.Command(),
git_repo_dir,
rdir,
nostatic=not git_import_static,
Expand Down

0 comments on commit c530f6b

Please sign in to comment.