git-repo/subcmds
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
..
__init__.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
abandon.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
branches.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
checkout.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
cherry_pick.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
diff.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
diffmanifests.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
download.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
forall.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
gitc_delete.py drop pyversion & is_python3 checking 2021-01-06 18:53:58 +00:00
gitc_init.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
grep.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
help.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
info.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
init.py drop pyversion & is_python3 checking 2021-01-06 18:53:58 +00:00
list.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
manifest.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
overview.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
prune.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
rebase.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
selfupdate.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
smartsync.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
stage.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
start.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
status.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
sync.py sync: pass --bare option when doing git clone of superproject. 2021-02-08 17:34:55 +00:00
upload.py drop pyversion & is_python3 checking 2021-01-06 18:53:58 +00:00
version.py version: add remote tracking information 2021-01-08 20:41:27 +00:00