From 7caa3658b2d9c7f8d48d8c659a39bb412037f74f Mon Sep 17 00:00:00 2001 From: Raman Tenneti Date: Mon, 1 Feb 2021 11:15:16 -0800 Subject: sync: Do a git pull with --use-superproject if superproject tree already exists. Tested the code with the following commands. $ ./run_tests -v tests/test_git_superproject.py $ ./run_tests -v Tested the sync code by copying all the repo changes into my Android AOSP checkout and doing a repo sync --use-superproject twice. .../WORKING_DIRECTORY$ repo sync --use-superproject Bug: https://crbug.com/gerrit/13709 Bug: https://crbug.com/gerrit/13707 Tested-by: Raman Tenneti Change-Id: I7e4b1e51ca1d18b836a5fa8d139a0765262ba500 --- git_superproject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git_superproject.py') diff --git a/git_superproject.py b/git_superproject.py index e2045cfd..157a1fbb 100644 --- a/git_superproject.py +++ b/git_superproject.py @@ -63,7 +63,7 @@ class Superproject(object): True if 'git clone ' is successful, or False. """ os.mkdir(self._superproject_path) - cmd = ['clone', url, '--filter', 'blob:none'] + cmd = ['clone', url, '--depth', '1'] if branch: cmd += ['--branch', branch] p = GitCommand(None, -- cgit v1.2.3-54-g00ecf