Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0b33576

Browse files
David RobertsonByron
David Robertson
authored andcommitted
Allowrepo.create_head'scommit arg to be aSymbolicReference
This matches the signature from `Head.create`.
1 parentb85c259 commit0b33576

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎git/repo/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ def _to_full_tag_path(path: PathLike) -> str:
420420
else:
421421
returnTagReference._common_path_default+'/'+path_str
422422

423-
defcreate_head(self,path:PathLike,commit:str='HEAD',
423+
defcreate_head(self,path:PathLike,
424+
commit:Union['SymbolicReference','str']='HEAD',
424425
force:bool=False,logmsg:Optional[str]=None
425426
)->'Head':
426427
"""Create a new head within the repository.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp