Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pascal MOLIN
lektor-commit
Commits
728aecd5
Commit
728aecd5
authored
Mar 30, 2021
by
Pascal
Browse files
fix message
parent
8148c8e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
git.py
View file @
728aecd5
...
...
@@ -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'
)
...
...
test/test_git.py
View file @
728aecd5
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment