summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/repo/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index 510eb12b..f8bc8128 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -420,7 +420,8 @@ class Repo(object):
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.