|
4 | 4 | importtempfile
|
5 | 5 | fromconfigparserimportParsingError
|
6 | 6 | fromutilsimportis_expected_exception_message,get_max_filename_length
|
7 |
| -fromgitimportRepo,GitCommandError,InvalidGitRepositoryError |
8 | 7 |
|
9 | 8 | ifgetattr(sys,"frozen",False)andhasattr(sys,"_MEIPASS"):# pragma: no cover
|
10 | 9 | path_to_bundled_git_binary=os.path.abspath(os.path.join(os.path.dirname(__file__),"git"))
|
11 | 10 | os.environ["GIT_PYTHON_GIT_EXECUTABLE"]=path_to_bundled_git_binary
|
12 | 11 |
|
| 12 | +fromgitimportRepo,GitCommandError,InvalidGitRepositoryError |
| 13 | + |
13 | 14 | ifnotsys.warnoptions:# pragma: no cover
|
14 | 15 | # The warnings filter below can be overridden by passing the -W option
|
15 | 16 | # to the Python interpreter command line or setting the `PYTHONWARNINGS` environment variable.
|
|