Skip to content

Commit

Permalink
Merge pull request #1926 from DaveLak/fix-broken-fuzz-submodule-target
Browse files Browse the repository at this point in the history
Fix Improper Import Order Breaking `fuzz_submodule` Fuzzer
  • Loading branch information
Byron authored Jun 4, 2024
2 parents e51bfdf + 491e134 commit ca1d031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fuzzing/fuzz-targets/fuzz_submodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import tempfile
from configparser import ParsingError
from utils import is_expected_exception_message, get_max_filename_length
from git import Repo, GitCommandError, InvalidGitRepositoryError

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

from git import Repo, GitCommandError, InvalidGitRepositoryError

if not sys.warnoptions: # pragma: no cover
# The warnings filter below can be overridden by passing the -W option
# to the Python interpreter command line or setting the `PYTHONWARNINGS` environment variable.
Expand Down

0 comments on commit ca1d031

Please sign in to comment.