@@ -317,7 +317,8 @@ def run_command(cmd, project_name):
317
317
cmd .getoutputstr ()))
318
318
319
319
320
- def handle_disabled_project (config , project_name , disabled_msg , headers = None , timeout = None ):
320
+ def handle_disabled_project (config , project_name , disabled_msg , headers = None ,
321
+ timeout = None ):
321
322
disabled_command = config .get (DISABLED_CMD_PROPERTY )
322
323
if disabled_command :
323
324
logger = logging .getLogger (__name__ )
@@ -381,14 +382,20 @@ def mirror_project(config, project_name, check_changes, uri,
381
382
prehook , posthook , hook_timeout , command_timeout , use_proxy , \
382
383
ignored_repos , \
383
384
check_changes_proj = get_project_properties (project_config ,
384
- project_name ,
385
- config .get (HOOKDIR_PROPERTY ))
385
+ project_name ,
386
+ config .
387
+ get (HOOKDIR_PROPERTY ))
386
388
387
389
if not command_timeout :
388
390
command_timeout = config .get (CMD_TIMEOUT_PROPERTY )
389
391
if not hook_timeout :
390
392
hook_timeout = config .get (HOOK_TIMEOUT_PROPERTY )
391
393
394
+ if check_changes_proj is None :
395
+ check_changes_config = config .get (INCOMING_PROPERTY )
396
+ else :
397
+ check_changes_config = check_changes_proj
398
+
392
399
proxy = None
393
400
if use_proxy :
394
401
proxy = config .get (PROXY_PROPERTY )
@@ -423,8 +430,8 @@ def mirror_project(config, project_name, check_changes, uri,
423
430
format (project_name ))
424
431
return CONTINUE_EXITVAL
425
432
426
- if check_changes_proj is not None :
427
- check_changes = check_changes_proj
433
+ if check_changes_config is not None :
434
+ check_changes = check_changes_config
428
435
429
436
# Check if the project or any of its repositories have changed.
430
437
if check_changes :
0 commit comments