diff --git a/AUTHORS b/AUTHORS index 2ac02e5fb..ef414e316 100644 --- a/AUTHORS +++ b/AUTHORS @@ -47,4 +47,5 @@ Contributors are: -Hugo van Kemenade -Hiroki Tokunaga -Julien Mauroy +-Patrick Gerard Portions derived from other open source works and are clearly marked. diff --git a/git/repo/base.py b/git/repo/base.py index 5a85cc4e2..a1be5ff9a 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -858,6 +858,8 @@ def ignored(self, *paths: PathLike) -> List[str]: @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