diff --git a/git/repo/base.py b/git/repo/base.py index 510eb12bf..f8bc8128e 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -420,7 +420,8 @@ def _to_full_tag_path(path: PathLike) -> str: else: return TagReference._common_path_default + '/' + path_str - def create_head(self, path: PathLike, commit: str = 'HEAD', + def create_head(self, path: PathLike, + commit: Union['SymbolicReference', 'str'] = 'HEAD', force: bool = False, logmsg: Optional[str] = None ) -> 'Head': """Create a new head within the repository.