Implement pre-commit autoupdate --freeze

This commit is contained in:
Anthony Sottile 2019-12-28 12:25:30 -08:00
parent 32ce682238
commit 8a3c740f9e
5 changed files with 314 additions and 260 deletions

View file

@ -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