We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
repo.create_head
commit
SymbolicReference
1 parent b85c259 commit 0b33576Copy full SHA for 0b33576
git/repo/base.py
@@ -420,7 +420,8 @@ def _to_full_tag_path(path: PathLike) -> str:
420
else:
421
return TagReference._common_path_default + '/' + path_str
422
423
- def create_head(self, path: PathLike, commit: str = 'HEAD',
+ def create_head(self, path: PathLike,
424
+ commit: Union['SymbolicReference', 'str'] = 'HEAD',
425
force: bool = False, logmsg: Optional[str] = None
426
) -> 'Head':
427
"""Create a new head within the repository.
0 commit comments