Skip to content
Snippets Groups Projects
Verified Commit 4a36e464 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

test_cookers: Retro document the TestRepo.commit method

parent f0fffdb9
No related branches found
Tags v0.0.23
No related merge requests found
......@@ -78,6 +78,13 @@ class TestRepo:
stdout=stdout, **kwargs)
def commit(self, message='Commit test\n', ref=b'HEAD'):
"""Commit the current working tree in a new commit with message on
the branch 'ref'.
At the end of the commit, the reference should stay the same
and the index should be clean.
"""
self.git_shell('add', '.')
message = message.encode() + b'\n'
ret = self.repo.do_commit(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment