git-repo/tests
Raman Tenneti 8d43dea6ea sync: pass --bare option when doing git clone of superproject.
Changed "git pull" to "git fetch" as we are using --bare option. Used the
following command to fetch:
  git fetch origin +refs/heads/*:refs/heads/* --prune

Pass --branch argument to Superproject's UpdateProjectsRevisionId function.

Returned False/None when directories don't exist instead of raise
GitError exception from _Fetch and _LsTree functions. The caller of Fetch
does Clone if Fetch fails.

Tested the code with the following commands.

$ ./run_tests -v

Tested the init and sync code by copying all the repo changes into my Android
AOSP checkout and running repo sync with --use-superproject option.

Bug: https://crbug.com/gerrit/13709
Bug: https://crbug.com/gerrit/13707
Tested-by: Raman Tenneti <rtenneti@google.com>
Change-Id: I3e441ecdfc87c735f46eff0eb98efa63cc2eb22a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/296222
Reviewed-by: Mike Frysinger <vapier@google.com>
2021-02-08 17:34:55 +00:00
..
fixtures git_config: add GetInt helper 2020-02-19 23:09:05 +00:00
test_editor.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_git_command.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_git_config.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_git_superproject.py sync: pass --bare option when doing git clone of superproject. 2021-02-08 17:34:55 +00:00
test_git_trace2_event_log.py Update "evt" field to be logged as a string type. 2021-01-19 20:35:56 +00:00
test_hooks.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_manifest_xml.py manifest: set revisionId as revision attribute it it is not being set in ToXml. 2021-02-07 17:13:35 +00:00
test_project.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
test_subcmds_init.py init: reject unknown args 2020-09-02 07:53:16 +00:00
test_subcmds.py init: reject unknown args 2020-09-02 07:53:16 +00:00
test_wrapper.py launcher: add a requirements framework to declare version dependencies 2021-01-19 16:48:21 +00:00