mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Combine blocks
This commit is contained in:
parent
dfb058f15f
commit
090030447d
1 changed files with 6 additions and 6 deletions
|
|
@ -116,12 +116,12 @@ def autoupdate(runner, tags_only, repo=None):
|
||||||
input_config = load_config(runner.config_file_path)
|
input_config = load_config(runner.config_file_path)
|
||||||
|
|
||||||
for repo_config in input_config['repos']:
|
for repo_config in input_config['repos']:
|
||||||
# Skip updating any repo_configs that aren't for the specified repo
|
if (
|
||||||
if repo and repo != repo_config['repo']:
|
is_local_repo(repo_config) or
|
||||||
output_repos.append(repo_config)
|
is_meta_repo(repo_config) or
|
||||||
continue
|
# Skip updating any repo_configs that aren't for the specified repo
|
||||||
|
repo and repo != repo_config['repo']
|
||||||
if is_local_repo(repo_config) or is_meta_repo(repo_config):
|
):
|
||||||
output_repos.append(repo_config)
|
output_repos.append(repo_config)
|
||||||
continue
|
continue
|
||||||
output.write('Updating {}...'.format(repo_config['repo']))
|
output.write('Updating {}...'.format(repo_config['repo']))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue