mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Implement pre-commit autoupdate --freeze
This commit is contained in:
parent
32ce682238
commit
8a3c740f9e
5 changed files with 314 additions and 260 deletions
|
|
@ -42,7 +42,7 @@ def test_gc(tempdir_factory, store, in_git_dir, cap_out):
|
|||
|
||||
# update will clone both the old and new repo, making the old one gc-able
|
||||
install_hooks(C.CONFIG_FILE, store)
|
||||
assert not autoupdate(C.CONFIG_FILE, store, tags_only=False)
|
||||
assert not autoupdate(C.CONFIG_FILE, store, freeze=False, tags_only=False)
|
||||
|
||||
assert _config_count(store) == 1
|
||||
assert _repo_count(store) == 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue