git: rename "git_operation_disabled" to "operations_disabled"
Prepare for other version control systems and remove "git" from the names. Signed-off-by: Henning Schild <henning.schild@siemens.com>
This commit is contained in:
committed by
Daniel Wagner
parent
9210fe57b4
commit
dc8d15c3be
@@ -158,7 +158,7 @@ def _repo_fetch_async(config, repo):
|
||||
"""
|
||||
Start asynchronous repository fetch.
|
||||
"""
|
||||
if repo.git_operation_disabled:
|
||||
if repo.operations_disabled:
|
||||
return 0
|
||||
|
||||
if not os.path.exists(repo.path):
|
||||
@@ -233,7 +233,7 @@ def repo_checkout(config, repo):
|
||||
"""
|
||||
Checks out the correct revision of the repo.
|
||||
"""
|
||||
if repo.git_operation_disabled or repo.refspec is None:
|
||||
if repo.operations_disabled or repo.refspec is None:
|
||||
return
|
||||
|
||||
# Check if repos is dirty
|
||||
|
Reference in New Issue
Block a user