GitPython 3.1.40__tar.gz → 3.1.41__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. {GitPython-3.1.40 → GitPython-3.1.41}/AUTHORS +1 -0
  2. {GitPython-3.1.40 → GitPython-3.1.41/GitPython.egg-info}/PKG-INFO +20 -5
  3. {GitPython-3.1.40 → GitPython-3.1.41}/GitPython.egg-info/requires.txt +3 -2
  4. {GitPython-3.1.40/GitPython.egg-info → GitPython-3.1.41}/PKG-INFO +20 -5
  5. {GitPython-3.1.40 → GitPython-3.1.41}/README.md +15 -1
  6. GitPython-3.1.41/VERSION +1 -0
  7. {GitPython-3.1.40 → GitPython-3.1.41}/doc/source/changes.rst +12 -0
  8. {GitPython-3.1.40 → GitPython-3.1.41}/doc/source/conf.py +2 -4
  9. {GitPython-3.1.40 → GitPython-3.1.41}/doc/source/tutorial.rst +1 -2
  10. {GitPython-3.1.40 → GitPython-3.1.41}/git/__init__.py +19 -45
  11. {GitPython-3.1.40 → GitPython-3.1.41}/git/cmd.py +341 -261
  12. GitPython-3.1.41/git/compat.py +130 -0
  13. {GitPython-3.1.40 → GitPython-3.1.41}/git/config.py +177 -166
  14. {GitPython-3.1.40 → GitPython-3.1.41}/git/db.py +19 -11
  15. {GitPython-3.1.40 → GitPython-3.1.41}/git/diff.py +112 -98
  16. {GitPython-3.1.40 → GitPython-3.1.41}/git/exc.py +54 -25
  17. GitPython-3.1.41/git/index/__init__.py +7 -0
  18. {GitPython-3.1.40 → GitPython-3.1.41}/git/index/base.py +269 -211
  19. {GitPython-3.1.40 → GitPython-3.1.41}/git/index/fun.py +91 -89
  20. {GitPython-3.1.40 → GitPython-3.1.41}/git/index/typ.py +17 -14
  21. {GitPython-3.1.40 → GitPython-3.1.41}/git/index/util.py +22 -24
  22. GitPython-3.1.41/git/objects/__init__.py +24 -0
  23. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/base.py +53 -43
  24. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/blob.py +8 -7
  25. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/commit.py +101 -89
  26. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/fun.py +57 -41
  27. GitPython-3.1.41/git/objects/submodule/__init__.py +5 -0
  28. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/submodule/base.py +334 -282
  29. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/submodule/root.py +90 -73
  30. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/submodule/util.py +16 -14
  31. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/tag.py +22 -19
  32. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/tree.py +66 -49
  33. {GitPython-3.1.40 → GitPython-3.1.41}/git/objects/util.py +151 -127
  34. GitPython-3.1.41/git/refs/__init__.py +12 -0
  35. {GitPython-3.1.40 → GitPython-3.1.41}/git/refs/head.py +51 -34
  36. {GitPython-3.1.40 → GitPython-3.1.41}/git/refs/log.py +69 -53
  37. {GitPython-3.1.40 → GitPython-3.1.41}/git/refs/reference.py +50 -38
  38. {GitPython-3.1.40 → GitPython-3.1.41}/git/refs/remote.py +14 -9
  39. {GitPython-3.1.40 → GitPython-3.1.41}/git/refs/symbolic.py +191 -135
  40. {GitPython-3.1.40 → GitPython-3.1.41}/git/refs/tag.py +27 -24
  41. {GitPython-3.1.40 → GitPython-3.1.41}/git/remote.py +177 -151
  42. GitPython-3.1.41/git/repo/__init__.py +6 -0
  43. {GitPython-3.1.40 → GitPython-3.1.41}/git/repo/base.py +292 -209
  44. {GitPython-3.1.40 → GitPython-3.1.41}/git/repo/fun.py +7 -2
  45. {GitPython-3.1.40 → GitPython-3.1.41}/git/types.py +10 -10
  46. {GitPython-3.1.40 → GitPython-3.1.41}/git/util.py +227 -163
  47. {GitPython-3.1.40 → GitPython-3.1.41}/pyproject.toml +9 -8
  48. {GitPython-3.1.40 → GitPython-3.1.41}/setup.py +5 -5
  49. {GitPython-3.1.40 → GitPython-3.1.41}/test-requirements.txt +3 -2
  50. GitPython-3.1.40/VERSION +0 -1
  51. GitPython-3.1.40/git/compat.py +0 -104
  52. GitPython-3.1.40/git/index/__init__.py +0 -4
  53. GitPython-3.1.40/git/objects/__init__.py +0 -24
  54. GitPython-3.1.40/git/objects/submodule/__init__.py +0 -2
  55. GitPython-3.1.40/git/refs/__init__.py +0 -9
  56. GitPython-3.1.40/git/repo/__init__.py +0 -3
  57. {GitPython-3.1.40 → GitPython-3.1.41}/CHANGES +0 -0
  58. {GitPython-3.1.40 → GitPython-3.1.41}/CONTRIBUTING.md +0 -0
  59. {GitPython-3.1.40 → GitPython-3.1.41}/GitPython.egg-info/SOURCES.txt +0 -0
  60. {GitPython-3.1.40 → GitPython-3.1.41}/GitPython.egg-info/dependency_links.txt +0 -0
  61. {GitPython-3.1.40 → GitPython-3.1.41}/GitPython.egg-info/not-zip-safe +0 -0
  62. {GitPython-3.1.40 → GitPython-3.1.41}/GitPython.egg-info/top_level.txt +0 -0
  63. {GitPython-3.1.40 → GitPython-3.1.41}/LICENSE +0 -0
  64. {GitPython-3.1.40 → GitPython-3.1.41}/MANIFEST.in +0 -0
  65. {GitPython-3.1.40 → GitPython-3.1.41}/doc/.gitignore +0 -0
  66. {GitPython-3.1.40 → GitPython-3.1.41}/doc/Makefile +0 -0
  67. {GitPython-3.1.40 → GitPython-3.1.41}/doc/requirements.txt +0 -0
  68. {GitPython-3.1.40 → GitPython-3.1.41}/doc/source/index.rst +0 -0
  69. {GitPython-3.1.40 → GitPython-3.1.41}/doc/source/intro.rst +0 -0
  70. {GitPython-3.1.40 → GitPython-3.1.41}/doc/source/quickstart.rst +0 -0
  71. {GitPython-3.1.40 → GitPython-3.1.41}/doc/source/reference.rst +0 -0
  72. {GitPython-3.1.40 → GitPython-3.1.41}/doc/source/roadmap.rst +0 -0
  73. {GitPython-3.1.40 → GitPython-3.1.41}/git/py.typed +0 -0
  74. {GitPython-3.1.40 → GitPython-3.1.41}/requirements.txt +0 -0
  75. {GitPython-3.1.40 → GitPython-3.1.41}/setup.cfg +0 -0
@@ -52,5 +52,6 @@ Contributors are:
52
52
  -Joseph Hale <me _at_ jhale.dev>
53
53
  -Santos Gallegos <stsewd _at_ proton.me>
54
54
  -Wenhan Zhu <wzhu.cosmos _at_ gmail.com>
55
+ -Eliah Kagan <eliah.kagan _at_ gmail.com>
55
56
 
56
57
  Portions derived from other open source works and are clearly marked.
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: GitPython
3
- Version: 3.1.40
3
+ Version: 3.1.41
4
4
  Summary: GitPython is a Python library used to interact with Git repositories
5
5
  Home-page: https://github.com/gitpython-developers/GitPython
6
6
  Author: Sebastian Thiel, Michael Trier
7
7
  Author-email: byronimo@gmail.com, mtrier@gmail.com
8
- License: BSD
8
+ License: BSD-3-Clause
9
9
  Classifier: Development Status :: 5 - Production/Stable
10
10
  Classifier: Environment :: Console
11
11
  Classifier: Intended Audience :: Developers
@@ -36,11 +36,12 @@ Requires-Dist: ddt!=1.4.3,>=1.1.1; extra == "test"
36
36
  Requires-Dist: mock; python_version < "3.8" and extra == "test"
37
37
  Requires-Dist: mypy; extra == "test"
38
38
  Requires-Dist: pre-commit; extra == "test"
39
- Requires-Dist: pytest; extra == "test"
39
+ Requires-Dist: pytest>=7.3.1; extra == "test"
40
40
  Requires-Dist: pytest-cov; extra == "test"
41
41
  Requires-Dist: pytest-instafail; extra == "test"
42
- Requires-Dist: pytest-subtests; extra == "test"
42
+ Requires-Dist: pytest-mock; extra == "test"
43
43
  Requires-Dist: pytest-sugar; extra == "test"
44
+ Requires-Dist: sumtypes; extra == "test"
44
45
 
45
46
  ![Python package](https://github.com/gitpython-developers/GitPython/workflows/Python%20package/badge.svg)
46
47
  [![Documentation Status](https://readthedocs.org/projects/gitpython/badge/?version=stable)](https://readthedocs.org/projects/gitpython/?badge=stable)
@@ -141,6 +142,20 @@ pip install -e ".[test]"
141
142
 
142
143
  In the less common case that you do not want to install test dependencies, `pip install -e .` can be used instead.
143
144
 
145
+ #### With editable *dependencies* (not preferred, and rarely needed)
146
+
147
+ In rare cases, you may want to work on GitPython and one or both of its [gitdb](https://github.com/gitpython-developers/gitdb) and [smmap](https://github.com/gitpython-developers/smmap) dependencies at the same time, with changes in your local working copy of gitdb or smmap immediatley reflected in the behavior of your local working copy of GitPython. This can be done by making editable installations of those dependencies in the same virtual environment where you install GitPython.
148
+
149
+ If you want to do that *and* you want the versions in GitPython's git submodules to be used, then pass `-e git/ext/gitdb` and/or `-e git/ext/gitdb/gitdb/ext/smmap` to `pip install`. This can be done in any order, and in separate `pip install` commands or the same one, so long as `-e` appears before *each* path. For example, you can install GitPython, gitdb, and smmap editably in the currently active virtual environment this way:
150
+
151
+ ```bash
152
+ pip install -e ".[test]" -e git/ext/gitdb -e git/ext/gitdb/gitdb/ext/smmap
153
+ ```
154
+
155
+ The submodules must have been cloned for that to work, but that will already be the case if you have run `./init-tests-after-clone.sh`. You can use `pip list` to check which packages are installed editably and which are installed normally.
156
+
157
+ To reiterate, this approach should only rarely be used. For most development it is preferable to allow the gitdb and smmap dependencices to be retrieved automatically from PyPI in their latest stable packaged versions.
158
+
144
159
  ### Limitations
145
160
 
146
161
  #### Leakage of System Resources
@@ -319,7 +334,7 @@ gpg --edit-key 4C08421980C9
319
334
 
320
335
  ### LICENSE
321
336
 
322
- [New BSD License](https://opensource.org/license/bsd-3-clause/). See the [LICENSE file][license].
337
+ [3-Clause BSD License](https://opensource.org/license/bsd-3-clause/), also known as the New BSD License. See the [LICENSE file][license].
323
338
 
324
339
  [contributing]: https://github.com/gitpython-developers/GitPython/blob/main/CONTRIBUTING.md
325
340
  [license]: https://github.com/gitpython-developers/GitPython/blob/main/LICENSE
@@ -9,11 +9,12 @@ coverage[toml]
9
9
  ddt!=1.4.3,>=1.1.1
10
10
  mypy
11
11
  pre-commit
12
- pytest
12
+ pytest>=7.3.1
13
13
  pytest-cov
14
14
  pytest-instafail
15
- pytest-subtests
15
+ pytest-mock
16
16
  pytest-sugar
17
+ sumtypes
17
18
 
18
19
  [test:python_version < "3.8"]
19
20
  mock
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: GitPython
3
- Version: 3.1.40
3
+ Version: 3.1.41
4
4
  Summary: GitPython is a Python library used to interact with Git repositories
5
5
  Home-page: https://github.com/gitpython-developers/GitPython
6
6
  Author: Sebastian Thiel, Michael Trier
7
7
  Author-email: byronimo@gmail.com, mtrier@gmail.com
8
- License: BSD
8
+ License: BSD-3-Clause
9
9
  Classifier: Development Status :: 5 - Production/Stable
10
10
  Classifier: Environment :: Console
11
11
  Classifier: Intended Audience :: Developers
@@ -36,11 +36,12 @@ Requires-Dist: ddt!=1.4.3,>=1.1.1; extra == "test"
36
36
  Requires-Dist: mock; python_version < "3.8" and extra == "test"
37
37
  Requires-Dist: mypy; extra == "test"
38
38
  Requires-Dist: pre-commit; extra == "test"
39
- Requires-Dist: pytest; extra == "test"
39
+ Requires-Dist: pytest>=7.3.1; extra == "test"
40
40
  Requires-Dist: pytest-cov; extra == "test"
41
41
  Requires-Dist: pytest-instafail; extra == "test"
42
- Requires-Dist: pytest-subtests; extra == "test"
42
+ Requires-Dist: pytest-mock; extra == "test"
43
43
  Requires-Dist: pytest-sugar; extra == "test"
44
+ Requires-Dist: sumtypes; extra == "test"
44
45
 
45
46
  ![Python package](https://github.com/gitpython-developers/GitPython/workflows/Python%20package/badge.svg)
46
47
  [![Documentation Status](https://readthedocs.org/projects/gitpython/badge/?version=stable)](https://readthedocs.org/projects/gitpython/?badge=stable)
@@ -141,6 +142,20 @@ pip install -e ".[test]"
141
142
 
142
143
  In the less common case that you do not want to install test dependencies, `pip install -e .` can be used instead.
143
144
 
145
+ #### With editable *dependencies* (not preferred, and rarely needed)
146
+
147
+ In rare cases, you may want to work on GitPython and one or both of its [gitdb](https://github.com/gitpython-developers/gitdb) and [smmap](https://github.com/gitpython-developers/smmap) dependencies at the same time, with changes in your local working copy of gitdb or smmap immediatley reflected in the behavior of your local working copy of GitPython. This can be done by making editable installations of those dependencies in the same virtual environment where you install GitPython.
148
+
149
+ If you want to do that *and* you want the versions in GitPython's git submodules to be used, then pass `-e git/ext/gitdb` and/or `-e git/ext/gitdb/gitdb/ext/smmap` to `pip install`. This can be done in any order, and in separate `pip install` commands or the same one, so long as `-e` appears before *each* path. For example, you can install GitPython, gitdb, and smmap editably in the currently active virtual environment this way:
150
+
151
+ ```bash
152
+ pip install -e ".[test]" -e git/ext/gitdb -e git/ext/gitdb/gitdb/ext/smmap
153
+ ```
154
+
155
+ The submodules must have been cloned for that to work, but that will already be the case if you have run `./init-tests-after-clone.sh`. You can use `pip list` to check which packages are installed editably and which are installed normally.
156
+
157
+ To reiterate, this approach should only rarely be used. For most development it is preferable to allow the gitdb and smmap dependencices to be retrieved automatically from PyPI in their latest stable packaged versions.
158
+
144
159
  ### Limitations
145
160
 
146
161
  #### Leakage of System Resources
@@ -319,7 +334,7 @@ gpg --edit-key 4C08421980C9
319
334
 
320
335
  ### LICENSE
321
336
 
322
- [New BSD License](https://opensource.org/license/bsd-3-clause/). See the [LICENSE file][license].
337
+ [3-Clause BSD License](https://opensource.org/license/bsd-3-clause/), also known as the New BSD License. See the [LICENSE file][license].
323
338
 
324
339
  [contributing]: https://github.com/gitpython-developers/GitPython/blob/main/CONTRIBUTING.md
325
340
  [license]: https://github.com/gitpython-developers/GitPython/blob/main/LICENSE
@@ -97,6 +97,20 @@ pip install -e ".[test]"
97
97
 
98
98
  In the less common case that you do not want to install test dependencies, `pip install -e .` can be used instead.
99
99
 
100
+ #### With editable *dependencies* (not preferred, and rarely needed)
101
+
102
+ In rare cases, you may want to work on GitPython and one or both of its [gitdb](https://github.com/gitpython-developers/gitdb) and [smmap](https://github.com/gitpython-developers/smmap) dependencies at the same time, with changes in your local working copy of gitdb or smmap immediatley reflected in the behavior of your local working copy of GitPython. This can be done by making editable installations of those dependencies in the same virtual environment where you install GitPython.
103
+
104
+ If you want to do that *and* you want the versions in GitPython's git submodules to be used, then pass `-e git/ext/gitdb` and/or `-e git/ext/gitdb/gitdb/ext/smmap` to `pip install`. This can be done in any order, and in separate `pip install` commands or the same one, so long as `-e` appears before *each* path. For example, you can install GitPython, gitdb, and smmap editably in the currently active virtual environment this way:
105
+
106
+ ```bash
107
+ pip install -e ".[test]" -e git/ext/gitdb -e git/ext/gitdb/gitdb/ext/smmap
108
+ ```
109
+
110
+ The submodules must have been cloned for that to work, but that will already be the case if you have run `./init-tests-after-clone.sh`. You can use `pip list` to check which packages are installed editably and which are installed normally.
111
+
112
+ To reiterate, this approach should only rarely be used. For most development it is preferable to allow the gitdb and smmap dependencices to be retrieved automatically from PyPI in their latest stable packaged versions.
113
+
100
114
  ### Limitations
101
115
 
102
116
  #### Leakage of System Resources
@@ -275,7 +289,7 @@ gpg --edit-key 4C08421980C9
275
289
 
276
290
  ### LICENSE
277
291
 
278
- [New BSD License](https://opensource.org/license/bsd-3-clause/). See the [LICENSE file][license].
292
+ [3-Clause BSD License](https://opensource.org/license/bsd-3-clause/), also known as the New BSD License. See the [LICENSE file][license].
279
293
 
280
294
  [contributing]: https://github.com/gitpython-developers/GitPython/blob/main/CONTRIBUTING.md
281
295
  [license]: https://github.com/gitpython-developers/GitPython/blob/main/LICENSE
@@ -0,0 +1 @@
1
+ 3.1.41
@@ -2,6 +2,18 @@
2
2
  Changelog
3
3
  =========
4
4
 
5
+ 3.1.41
6
+ ======
7
+
8
+ This release is relevant for security as it fixes a possible arbitary
9
+ code execution on Windows.
10
+
11
+ See this PR for details: https://github.com/gitpython-developers/GitPython/pull/1792
12
+ An advisory is available soon at: https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx
13
+
14
+ See the following for all changes.
15
+ https://github.com/gitpython-developers/GitPython/releases/tag/3.1.40
16
+
5
17
  3.1.40
6
18
  ======
7
19
 
@@ -1,6 +1,4 @@
1
- # -*- coding: utf-8 -*-
2
- #
3
- # GitPython documentation build configuration file, created by
1
+ # GitPython documentation build configuration file, originally created by
4
2
  # sphinx-quickstart on Sat Jan 24 11:51:01 2009.
5
3
  #
6
4
  # This file is execfile()d with the current directory set to its containing dir.
@@ -170,7 +168,7 @@ htmlhelp_basename = "gitpythondoc"
170
168
  # Grouping the document tree into LaTeX files. List of tuples
171
169
  # (source start file, target name, title, author, document class [howto/manual]).
172
170
  latex_documents = [
173
- ("index", "GitPython.tex", r"GitPython Documentation", r"Michael Trier", "manual"),
171
+ ("index", "GitPython.tex", "GitPython Documentation", "Michael Trier", "manual"),
174
172
  ]
175
173
 
176
174
  # The name of an image file (relative to this directory) to place at the top of
@@ -413,7 +413,7 @@ If you obtained your submodule object by traversing a tree object which is not r
413
413
  you have to inform the submodule about its actual commit to retrieve the data from
414
414
  by using the ``set_parent_commit(...)`` method.
415
415
 
416
- The special :class:`RootModule <git.objects.submodule.root.RootModule>` type allows you to treat your master repository as root of a hierarchy of submodules, which allows very convenient submodule handling. Its ``update(...)`` method is reimplemented to provide an advanced way of updating submodules as they change their values over time. The update method will track changes and make sure your working tree and submodule checkouts stay consistent, which is very useful in case submodules get deleted or added to name just two of the handled cases.
416
+ The special :class:`RootModule <git.objects.submodule.root.RootModule>` type allows you to treat your superproject (master repository) as root of a hierarchy of submodules, which allows very convenient submodule handling. Its ``update(...)`` method is reimplemented to provide an advanced way of updating submodules as they change their values over time. The update method will track changes and make sure your working tree and submodule checkouts stay consistent, which is very useful in case submodules get deleted or added to name just two of the handled cases.
417
417
 
418
418
  Additionally, GitPython adds functionality to track a specific branch, instead of just a commit. Supported by customized update methods, you are able to automatically update submodules to the latest revision available in the remote repository, as well as to keep track of changes and movements of these submodules. To use it, set the name of the branch you want to track to the ``submodule.$name.branch`` option of the *.gitmodules* file, and use GitPython update methods on the resulting repository with the ``to_latest_revision`` parameter turned on. In the latter case, the sha of your submodule will be ignored, instead a local tracking branch will be updated to the respective remote branch automatically, provided there are no local changes. The resulting behaviour is much like the one of svn::externals, which can be useful in times.
419
419
 
@@ -545,4 +545,3 @@ And even more ...
545
545
  There is more functionality in there, like the ability to archive repositories, get stats and logs, blame, and probably a few other things that were not mentioned here.
546
546
 
547
547
  Check the unit tests for an in-depth introduction on how each function is supposed to be used.
548
-
@@ -1,69 +1,43 @@
1
- # __init__.py
2
1
  # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
3
2
  #
4
- # This module is part of GitPython and is released under
5
- # the BSD License: https://opensource.org/license/bsd-3-clause/
6
- # flake8: noqa
7
- # @PydevCodeAnalysisIgnore
8
- from git.exc import * # @NoMove @IgnorePep8
9
- import inspect
10
- import os
11
- import sys
12
- import os.path as osp
13
-
14
- from typing import Optional
15
- from git.types import PathLike
16
-
17
- __version__ = '3.1.40'
18
-
19
-
20
- # { Initialization
21
- def _init_externals() -> None:
22
- """Initialize external projects by putting them into the path"""
23
- if __version__ == '3.1.40' and "PYOXIDIZER" not in os.environ:
24
- sys.path.insert(1, osp.join(osp.dirname(__file__), "ext", "gitdb"))
25
-
26
- try:
27
- import gitdb
28
- except ImportError as e:
29
- raise ImportError("'gitdb' could not be found in your PYTHONPATH") from e
30
- # END verify import
3
+ # This module is part of GitPython and is released under the
4
+ # 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
31
5
 
6
+ # @PydevCodeAnalysisIgnore
32
7
 
33
- # } END initialization
34
-
8
+ __version__ = '3.1.41'
35
9
 
36
- #################
37
- _init_externals()
38
- #################
10
+ from typing import List, Optional, Sequence, Tuple, Union, TYPE_CHECKING
39
11
 
40
- # { Imports
12
+ from gitdb.util import to_hex_sha
13
+ from git.exc import * # noqa: F403 # @NoMove @IgnorePep8
14
+ from git.types import PathLike
41
15
 
42
16
  try:
17
+ from git.compat import safe_decode # @NoMove @IgnorePep8
43
18
  from git.config import GitConfigParser # @NoMove @IgnorePep8
44
- from git.objects import * # @NoMove @IgnorePep8
45
- from git.refs import * # @NoMove @IgnorePep8
46
- from git.diff import * # @NoMove @IgnorePep8
47
- from git.db import * # @NoMove @IgnorePep8
19
+ from git.objects import * # noqa: F403 # @NoMove @IgnorePep8
20
+ from git.refs import * # noqa: F403 # @NoMove @IgnorePep8
21
+ from git.diff import * # noqa: F403 # @NoMove @IgnorePep8
22
+ from git.db import * # noqa: F403 # @NoMove @IgnorePep8
48
23
  from git.cmd import Git # @NoMove @IgnorePep8
49
24
  from git.repo import Repo # @NoMove @IgnorePep8
50
- from git.remote import * # @NoMove @IgnorePep8
51
- from git.index import * # @NoMove @IgnorePep8
25
+ from git.remote import * # noqa: F403 # @NoMove @IgnorePep8
26
+ from git.index import * # noqa: F403 # @NoMove @IgnorePep8
52
27
  from git.util import ( # @NoMove @IgnorePep8
53
28
  LockFile,
54
29
  BlockingLockFile,
55
30
  Stats,
56
31
  Actor,
32
+ remove_password_if_present,
57
33
  rmtree,
58
34
  )
59
- except GitError as _exc:
35
+ except GitError as _exc: # noqa: F405
60
36
  raise ImportError("%s: %s" % (_exc.__class__.__name__, _exc)) from _exc
61
37
 
62
- # } END imports
63
-
64
38
  # __all__ must be statically defined by py.typed support
65
39
  # __all__ = [name for name, obj in locals().items() if not (name.startswith("_") or inspect.ismodule(obj))]
66
- __all__ = [
40
+ __all__ = [ # noqa: F405
67
41
  "Actor",
68
42
  "AmbiguousObjectName",
69
43
  "BadName",
@@ -152,7 +126,7 @@ def refresh(path: Optional[PathLike] = None) -> None:
152
126
 
153
127
  if not Git.refresh(path=path):
154
128
  return
155
- if not FetchInfo.refresh():
129
+ if not FetchInfo.refresh(): # noqa: F405
156
130
  return # type: ignore [unreachable]
157
131
 
158
132
  GIT_OK = True