From c0ab23e5d0afce4a85a8af7ec2a360bf6c71c4ac Mon Sep 17 00:00:00 2001 From: Yobmod Date: Tue, 6 Jul 2021 16:04:06 +0100 Subject: Rmv submodule types2 --- git/diff.py | 4 ++-- git/objects/submodule/base.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'git') diff --git a/git/diff.py b/git/diff.py index c5e231b2..ac744999 100644 --- a/git/diff.py +++ b/git/diff.py @@ -24,11 +24,11 @@ if TYPE_CHECKING: from subprocess import Popen -Lit_change_type = Literal['A', 'D', 'M', 'R', 'T'] +Lit_change_type = Literal['A', 'C', 'D', 'M', 'R', 'T'] def is_change_type(inp: str) -> TypeGuard[Lit_change_type]: - return inp in ('A', 'D', 'M', 'R', 'T') + return inp in ('A', 'D', 'C', 'M', 'R', 'T') # ------------------------------------------------------------------------ diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index c95b66f2..499b2b30 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -391,7 +391,7 @@ class Submodule(IndexObject, TraversableIterableObj): if sm.exists(): # reretrieve submodule from tree try: - sm = repo.head.commit.tree[path] + sm = repo.head.commit.tree[path] # type: ignore sm._name = name return sm except KeyError: -- cgit v1.2.1