From a46047a822ad13738af9b17a524a0bd483b98033 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Thu, 7 Apr 2022 21:57:06 +0000 Subject: sync: refactor use of self.manifest We need to iterate over multiple manifests, and generally use the outer_client.manifest for multi-manifest support. This refactors the use of self.manifest into a chosen manifest. Change-Id: I992f21d610c929675e99555ece9c38df4b635839 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/334699 Tested-by: LaMont Jones Reviewed-by: Mike Frysinger --- tests/test_subcmds_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_subcmds_sync.py') diff --git a/tests/test_subcmds_sync.py b/tests/test_subcmds_sync.py index c1d1758e..aad713f2 100644 --- a/tests/test_subcmds_sync.py +++ b/tests/test_subcmds_sync.py @@ -42,4 +42,4 @@ def test_get_current_branch_only(use_superproject, cli_args, result): opts, _ = cmd.OptionParser.parse_args(cli_args) with mock.patch('git_superproject.UseSuperproject', return_value=use_superproject): - assert cmd._GetCurrentBranchOnly(opts) == result + assert cmd._GetCurrentBranchOnly(opts, cmd.manifest) == result -- cgit v1.2.3-54-g00ecf