You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran commit command for a simple msg in python 3.11.4. I got this error:
$ gitm commit "Fix protocol"
Traceback (most recent call last):
File "/home/project/venv/bin/gitm", line 8, in<module>sys.exit(run())
^^^^^
File "/home/project/venv/lib/python3.11/site-packages/gitm/__main__.py", line 41, in run
app()
File "/home/project/venv/lib/python3.11/site-packages/gitm/__main__.py", line 17, in commit
msg_commit = get_msg(msg)
^^^^^^^^^^^^
File "/home/project/venv/lib/python3.11/site-packages/gitm/pattern.py", line 127, in get_msg
if re.search(pattern.regex, msg):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/__init__.py", line 176, in search
return _compile(pattern, flags).search(string)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/__init__.py", line 294, in _compile
p = _compiler.compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_compiler.py", line 743, in compile
p = _parser.parse(p, flags)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_parser.py", line 980, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_parser.py", line 455, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_parser.py", line 770, in _parse
p = _parse_sub(source, state, verbose, nested + 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_parser.py", line 455, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/_parser.py", line 841, in _parse
raise source.error('global flags not at the start '
re.error: global flags not at the start of the expression at position 5
The text was updated successfully, but these errors were encountered:
I ran
commit
command for a simple msg in python 3.11.4. I got this error:The text was updated successfully, but these errors were encountered: