Commit 728aecd5 authored by Pascal's avatar Pascal
Browse files

fix message

parent 8148c8e9
......@@ -156,6 +156,7 @@ class GitCommit(GitCommand):
git_cmd = ['git', 'commit']
def git_args(self, message, author):
author = shlex.quote(author)
message = shlex.quote(message)
return ['-m', message, '--author=%s'%(author)]
@Repo.command('commit_index')
......
......@@ -21,7 +21,7 @@ def test_git_session(git):
assert 'configs/login.ini' not in str(rv), "[2] after commit"
print("[3] commit untracked files")
rv = git.commit_tree('add all', 'pytest <dev@null>')
rv = git.commit_tree('add all files', 'pytest <dev@null>')
assert rv, "[3] commit all tree"
rv = git.status()
assert len(rv) == 0, "[3] after commit all"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment