Skip to content

Commit ca1d031

Browse files
authored
Merge pull request #1926 from DaveLak/fix-broken-fuzz-submodule-target
Fix Improper Import Order Breaking `fuzz_submodule` Fuzzer
2 parents e51bfdf + 491e134 commit ca1d031

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fuzzing/fuzz-targets/fuzz_submodule.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
import tempfile
55
from configparser import ParsingError
66
from utils import is_expected_exception_message, get_max_filename_length
7-
from git import Repo, GitCommandError, InvalidGitRepositoryError
87

98
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): # pragma: no cover
109
path_to_bundled_git_binary = os.path.abspath(os.path.join(os.path.dirname(__file__), "git"))
1110
os.environ["GIT_PYTHON_GIT_EXECUTABLE"] = path_to_bundled_git_binary
1211

12+
from git import Repo, GitCommandError, InvalidGitRepositoryError
13+
1314
if not sys.warnoptions: # pragma: no cover
1415
# The warnings filter below can be overridden by passing the -W option
1516
# to the Python interpreter command line or setting the `PYTHONWARNINGS` environment variable.

0 commit comments

Comments
 (0)