GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(commitizen-git): add quotes for tag message · commitizen-tools/commitizen@775bb30

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • commitizen
    • git.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎commitizen/git.py‎

Copy file name to clipboardExpand all lines: commitizen/git.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,16 @@ def from_line(cls, line: str, inner_delimiter: str) -> GitTag:
8282
return cls(name=name, rev=obj, date=date)
8383

8484

85-
def tag(tag: str, annotated: bool = False, signed: bool = False, msg: Optional[str] = None) -> cmd.Command:
85+
def tag(
86+
tag: str, annotated: bool = False, signed: bool = False, msg: Optional[str] = None
87+
) -> cmd.Command:
8688
_opt = ""
8789
if annotated:
8890
_opt = f"-a {tag} -m"
8991
if signed:
9092
_opt = f"-s {tag} -m"
9193

92-
c = cmd.run(f"git tag {_opt} {tag if _opt == '' or msg is None else msg}")
94+
c = cmd.run(f'git tag {_opt} "{tag if _opt == "" or msg is None else msg}"')
9395
return c
9496

9597

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.