mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Make autoupdate work for non-master default branches
This commit is contained in:
parent
7769915a0b
commit
8be0f857e8
2 changed files with 9 additions and 3 deletions
|
|
@ -309,6 +309,12 @@ def test_autoupdate_hook_disappearing_repo(
|
|||
assert before == after
|
||||
|
||||
|
||||
def test_autoupdate_non_master_default_branch(up_to_date_repo, store):
|
||||
# change the default branch to be not-master
|
||||
cmd_output('git', '-C', up_to_date_repo, 'branch', '-m', 'dev')
|
||||
test_up_to_date_repo(up_to_date_repo, store)
|
||||
|
||||
|
||||
def test_autoupdate_local_hooks(in_git_dir, store):
|
||||
config = sample_local_config()
|
||||
add_config_to_repo('.', config)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue