diff options
author | Raman Tenneti <rtenneti@google.com> | 2021-03-23 15:12:27 -0700 |
---|---|---|
committer | Raman Tenneti <rtenneti@google.com> | 2021-03-24 15:17:19 +0000 |
commit | 2ae44d7029fd435be96ba48eb1e367241c36c940 (patch) | |
tree | a2ae9fe91c38dddb61294bd94e0db4bef08b2a0b /subcmds/forall.py | |
parent | d1e4fa7015379cfa3c7ee0fe091bc5910754425f (diff) | |
download | git-repo-2ae44d7029fd435be96ba48eb1e367241c36c940.tar.gz |
sync: imply -c if --use-superproject option is used.
Tested the code with the following commands.
$ ./run_tests -v
Bug: [google internal] b/183232698
Bug: https://crbug.com/gerrit/13707
$ repo_dev init -u sso://android.git.corp.google.com/platform/manifest -b master --partial-clone --clone-filter=blob:limit=10M --repo-rev=main --use-superproject
$ repo_dev sync --use-superproject
$ repo_dev sync
real 0m8.046s
user 0m2.866s
sys 0m2.457s
Second time repo sync took only 8 seconds and verified by printing that
urrent_branch_only is True in project.py's Sync_NetworkHalf function.
Change-Id: Ic48efb23ea427dfa36e12a5c49973d6ae776d818
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/301182
Tested-by: Raman Tenneti <rtenneti@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/forall.py')
0 files changed, 0 insertions, 0 deletions