Skip to content

1.4: stg uncommit fails with commit messages containing * characters #176

@lkraav

Description

@lkraav

With commit log like

...
* 2017aa241 - chore: phpcbf SlevomatCodingStandard.Namespaces.*FullyQualified.* (16 minutes ago) <leho>
...

we get this crash

$ stg uncommit 
Uncommitting 1 patches ... 
  Error: Unhandled exception:
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/stgit/main.py", line 183, in _main
    return command.func(parser, options, args)
  File "/usr/lib/python3.9/site-packages/stgit/commands/uncommit.py", line 151, in func
    pn = stack.patches.make_name(c.data.message_str, disallow=taken_names)
  File "/usr/lib/python3.9/site-packages/stgit/lib/stack.py", line 204, in make_name
    assert self.is_name_valid(long_name)
AssertionError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions