File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# This module is part of GitPython and is released under the
2
2
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
3
3
4
+ import logging
5
+
6
+ import git
7
+ from git .exc import InvalidGitRepositoryError
4
8
from .base import Submodule , UpdateProgress
5
9
from .util import find_first_remote_branch
6
- from git .exc import InvalidGitRepositoryError
7
- import git
8
-
9
- import logging
10
10
11
11
# typing -------------------------------------------------------------------
12
12
13
13
from typing import TYPE_CHECKING , Union
14
14
15
- from git .types import Old_commit_ish
15
+ from git .types import Commit_ish
16
16
17
17
if TYPE_CHECKING :
18
18
from git .repo import Repo
@@ -77,7 +77,7 @@ def _clear_cache(self) -> None:
77
77
78
78
def update ( # type: ignore[override]
79
79
self ,
80
- previous_commit : Union [Old_commit_ish , None ] = None ,
80
+ previous_commit : Union [Commit_ish , str , None ] = None ,
81
81
recursive : bool = True ,
82
82
force_remove : bool = False ,
83
83
init : bool = True ,
You can’t perform that action at this time.
0 commit comments