summaryrefslogtreecommitdiffstats
path: root/tests/test_git_config.py
diff options
context:
space:
mode:
authorRaman Tenneti <rtenneti@google.com>2021-02-07 16:30:27 -0800
committerRaman Tenneti <rtenneti@google.com>2021-02-08 17:34:55 +0000
commit8d43dea6ea4b7d1664632e555e207f617e54657b (patch)
tree5632d2a6e5d6e8ccff305e84734665f2f1b4fb04 /tests/test_git_config.py
parent1fd7bc24386dbba3a9454bb49c702a642f00e34c (diff)
downloadgit-repo-8d43dea6ea4b7d1664632e555e207f617e54657b.tar.gz
sync: pass --bare option when doing git clone of superproject.v2.12.1
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>
Diffstat (limited to 'tests/test_git_config.py')
0 files changed, 0 insertions, 0 deletions