File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11# This module is part of GitPython and is released under the
22# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
33
4+ import logging
5+
6+ import git
7+ from git .exc import InvalidGitRepositoryError
48from .base import Submodule , UpdateProgress
59from .util import find_first_remote_branch
6- from git .exc import InvalidGitRepositoryError
7- import git
8-
9- import logging
1010
1111# typing -------------------------------------------------------------------
1212
1313from typing import TYPE_CHECKING , Union
1414
15- from git .types import Old_commit_ish
15+ from git .types import Commit_ish
1616
1717if TYPE_CHECKING :
1818 from git .repo import Repo
@@ -77,7 +77,7 @@ def _clear_cache(self) -> None:
7777
7878 def update ( # type: ignore[override]
7979 self ,
80- previous_commit : Union [Old_commit_ish , None ] = None ,
80+ previous_commit : Union [Commit_ish , str , None ] = None ,
8181 recursive : bool = True ,
8282 force_remove : bool = False ,
8383 init : bool = True ,
You can’t perform that action at this time.
0 commit comments