Skip to content

random syntax error #257

Closed
Closed
@ror6ax

Description

@ror6ax

Hi guys,
while working on a project, I met weird behaviour:

repo.git.commit(m="{0},{1},{2}".format(inc,vm,dateexp))
  File "/usr/lib/python2.6/site-packages/git/cmd.py", line 431, in <lambda>
    return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/git/cmd.py", line 802, in _call_process
    return self.execute(make_call(), **_kwargs)
  File "/usr/lib/python2.6/site-packages/git/cmd.py", line 607, in execute
    raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git commit -mcommitmessage' returned with exit code 1

Usually it works fine. But once in a while gitpython somehow wants to run -m immidiately followed by message, without the space. Obviously, this fails.

Any ideas on how to overcome this?

Thanks a lot,
Greg

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