diff options
author | LaMont Jones <lamontjones@google.com> | 2022-04-07 21:57:06 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-04-14 22:24:04 +0000 |
commit | a46047a822ad13738af9b17a524a0bd483b98033 (patch) | |
tree | f24b75ccf9d063979600564fb9f9af01fcfb0c4f /tests/test_subcmds_sync.py | |
parent | 5fa912b0d148cf92f72640ac7dcff98c5db11853 (diff) | |
download | git-repo-a46047a822ad13738af9b17a524a0bd483b98033.tar.gz |
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 <lamontjones@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'tests/test_subcmds_sync.py')
-rw-r--r-- | tests/test_subcmds_sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
42 | opts, _ = cmd.OptionParser.parse_args(cli_args) | 42 | opts, _ = cmd.OptionParser.parse_args(cli_args) |
43 | 43 | ||
44 | with mock.patch('git_superproject.UseSuperproject', return_value=use_superproject): | 44 | with mock.patch('git_superproject.UseSuperproject', return_value=use_superproject): |
45 | assert cmd._GetCurrentBranchOnly(opts) == result | 45 | assert cmd._GetCurrentBranchOnly(opts, cmd.manifest) == result |