mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Improve git_commit helper
This commit is contained in:
parent
28c97a95cd
commit
160a11a0a7
10 changed files with 75 additions and 84 deletions
|
|
@ -90,9 +90,9 @@ def test_does_not_recreate_if_directory_already_exists(store):
|
|||
def test_clone(store, tempdir_factory, log_info_mock):
|
||||
path = git_dir(tempdir_factory)
|
||||
with cwd(path):
|
||||
git_commit('foo')
|
||||
git_commit()
|
||||
rev = git.head_rev(path)
|
||||
git_commit('bar')
|
||||
git_commit()
|
||||
|
||||
ret = store.clone(path, rev)
|
||||
# Should have printed some stuff
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue