summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index baee6b23..9e783205 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -280,8 +280,13 @@ later is required to fix a server side protocol bug.
280 return branch 280 return branch
281 281
282 def _GetCurrentBranchOnly(self, opt): 282 def _GetCurrentBranchOnly(self, opt):
283 """Returns True if current-branch or use-superproject options are enabled.""" 283 """Returns whether current-branch or use-superproject options are enabled.
284 return opt.current_branch_only or git_superproject.UseSuperproject(opt, self.manifest) 284
285 Returns:
286 True if a superproject is requested, otherwise the value of the
287 current_branch option (True, False or None).
288 """
289 return git_superproject.UseSuperproject(opt, self.manifest) or opt.current_branch_only
285 290
286 def _UpdateProjectsRevisionId(self, opt, args, load_local_manifests, superproject_logging_data): 291 def _UpdateProjectsRevisionId(self, opt, args, load_local_manifests, superproject_logging_data):
287 """Update revisionId of every project with the SHA from superproject. 292 """Update revisionId of every project with the SHA from superproject.