summaryrefslogtreecommitdiff
path: root/git/repo
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-28 16:26:35 +0100
committerYobmod <yobmod@gmail.com>2021-07-28 16:26:35 +0100
commit28fdd30a579362a1121fa7e81d8051098b31f2d1 (patch)
tree398ac4b11472045a6b084e2e4f92e1fcda751b5a /git/repo
parent77a77695b487bf287a5f488ebc7ceadd96e692ae (diff)
downloadgitpython-28fdd30a579362a1121fa7e81d8051098b31f2d1.tar.gz
Fix SymbolicReference reference typing
Diffstat (limited to 'git/repo')
-rw-r--r--git/repo/base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index f8a1689a..74f27b2e 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -422,7 +422,7 @@ class Repo(object):
def create_head(self, path: PathLike, commit: str = 'HEAD',
force: bool = False, logmsg: Optional[str] = None
- ) -> 'SymbolicReference':
+ ) -> 'Head':
"""Create a new head within the repository.
For more documentation, please see the Head.create method.
@@ -788,9 +788,8 @@ class Repo(object):
return proc.replace("\\\\", "\\").replace('"', "").split("\n")
@property
- def active_branch(self) -> 'SymbolicReference':
+ def active_branch(self) -> 'HEAD':
"""The name of the currently active branch.
-
:return: Head to the active branch"""
return self.head.reference