summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/repo/base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index 5a85cc4e..0fed0e4e 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -858,6 +858,8 @@ class Repo(object):
@property
def active_branch(self) -> Head:
"""The name of the currently active branch.
+
+ Raises: TypeError – If HEAD is detached
:return: Head to the active branch"""
# reveal_type(self.head.reference) # => Reference
return self.head.reference