Skip to content

Commit 4a3ff3b

Browse files
author
Vladimir Kotal
committed
initialize ignored_repos at the right time
1 parent 8c09592 commit 4a3ff3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/sync/mirror.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@
171171

172172
prehook = None
173173
posthook = None
174-
ignored_repos = []
175174
use_proxy = False
176175
if project_config:
177176
logger.debug("Project '{}' has specific (non-default) config".
@@ -213,6 +212,8 @@
213212
sys.exit(1)
214213
logger.debug("has ignored repositories: {}".
215214
format(ignored_repos))
215+
else:
216+
ignored_repos = []
216217

217218
hooks = project_config.get('hooks')
218219
if hooks:

0 commit comments

Comments
 (0)