commit | 89e222cb218d126e81dd3b72fa91be8ffa9d6c77 | [log] [tgz] |
---|---|---|
author | Karsten Tausche <karsten@fairphone.com> | Wed Dec 16 12:38:33 2020 +0100 |
committer | Karsten Tausche <karsten@fairphone.com> | Tue Dec 21 15:54:29 2021 +0100 |
tree | 0107ee3058e8cea93385da59bcd74c8d52cd357b | |
parent | 4a478edb443864561089b2699c9e65c85fc5e036 [diff] |
Allow to force unshallow checkouts In upstream and public source sync scenarios we often have a sequence of `repo init`, `repo sync`, followed by unshallowing all projects and pushing references from the source to a target Gerrit. `repo sync` will create shallow checkouts each time it's called, even requested by the manifest. So we end up switching between shallow and unshallow checkouts a lot, which is a waste of time and network traffic. This introduce a custom `--depth -1` parameter value that forces unshallow checkouts on all projects. Issue: INFRA-288 Change-Id: I38050a9ef13553896e84c6052d6b1fb81c179ff9 (cherry picked from commit c028904b06623bf2fda6b068176aa698921f8760)
Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git. The repo command is an executable Python script that you can put anywhere in your path.
Please use the repo-discuss mailing list or issue tracker for questions.
You can file a new bug report under the "repo" component.
Please do not e-mail individual developers for support. They do not have the bandwidth for it, and often times questions have already been asked on repo-discuss or bugs posted to the issue tracker. So please search those sites first.
Many distros include repo, so you might be able to install from there.
# Debian/Ubuntu. $ sudo apt-get install repo # Gentoo. $ sudo emerge dev-vcs/repo
You can install it manually as well as it's a single script.
$ mkdir -p ~/.bin $ PATH="${HOME}/.bin:${PATH}" $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo $ chmod a+rx ~/.bin/repo