summaryrefslogtreecommitdiff
path: root/git/refs/log.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-05-18 08:29:52 +0800
committerGitHub <noreply@github.com>2021-05-18 08:29:52 +0800
commitb11bcfa3df4d0b792823930bffae126fd12673f7 (patch)
tree85dc837ef6cadec84d232f5e7110d2dfc44c3b1a /git/refs/log.py
parent33346b25c3a4fb5ea37202d88d6a6c66379099c5 (diff)
parentc30bf3ba7548a0e996907b9a097ec322760eb43a (diff)
downloadgitpython-b11bcfa3df4d0b792823930bffae126fd12673f7.tar.gz
Merge pull request #1244 from Yobmod/main
Added types to Index submodule
Diffstat (limited to 'git/refs/log.py')
-rw-r--r--git/refs/log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/refs/log.py b/git/refs/log.py
index fcd2c23c..363c3c5d 100644
--- a/git/refs/log.py
+++ b/git/refs/log.py
@@ -97,8 +97,8 @@ class RefLogEntry(tuple):
" Got %s" % repr(line))
# END handle first split
- oldhexsha = info[:40]
- newhexsha = info[41:81]
+ oldhexsha = info[:40] # type: str
+ newhexsha = info[41:81] # type: str
for hexsha in (oldhexsha, newhexsha):
if not cls._re_hexsha_only.match(hexsha):
raise ValueError("Invalid hexsha: %r" % (hexsha,))