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

Commit275c37f

Browse files
ruudaByron
authored andcommitted
Fix bug in TagReference.create
When passing the "message" kwarg, this would add a -m command-line flagwithout removing --message, and the message would be duplicated. Avoidthat by deleting "message" from the command line.
1 parentf6523c1 commit275c37f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎git/refs/tag.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ def create(
113113
if"ref"inkwargsandkwargs["ref"]:
114114
reference=kwargs["ref"]
115115

116+
if"message"inkwargsandkwargs["message"]:
117+
kwargs["m"]=kwargs["message"]
118+
delkwargs["message"]
119+
116120
iflogmsg:
117121
kwargs["m"]=logmsg
118-
elif"message"inkwargsandkwargs["message"]:
119-
kwargs["m"]=kwargs["message"]
120122

121123
ifforce:
122124
kwargs["f"]=True

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp