git-repo/tests
Mike Frysinger d8fda90eed repo: rework parser setup to handle init -c
We added support for `repo init -c` to main.py, but not to the
launcher, so the -c option only works after the first init has
run which kind of defeats its purpose.  Rework the parser setup
so that we can tell it whether it's for "init" or "gitc-init"
and then add the -c option in the same way we do in main.py.

This has the benefit of getting the parser entirely out of the
module scope which makes it a lot easier to reason about, and
it means we can write some unittests.

Change-Id: Icbc2ec3aceb938d5a8f941d5fbce1548553dc5f7
Test: repo help init
Test: repo help gitc-init
Test: repo init -u https://android.googlesource.com/platform/manifest -c
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255113
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
2020-02-14 05:52:17 +00:00
..
fixtures run_tests: add a helper for invoking unittests 2019-07-11 04:34:08 +00:00
test_editor.py upload/editor: fix bytes/string confusion 2019-11-16 23:55:30 +00:00
test_git_command.py repo: raise min version of git 2020-02-05 19:01:40 +00:00
test_git_config.py Fix blank line issues reported by flake8 2020-02-12 06:36:40 +00:00
test_manifest_xml.py manifest_xml: allow src=. with symlinks 2020-02-10 23:19:31 +00:00
test_project.py test_project.py: Remove unused variable in 'with' statement 2020-02-12 02:56:32 +00:00
test_wrapper.py repo: rework parser setup to handle init -c 2020-02-14 05:52:17 +00:00