tag | 1dfa20972e7426f431b2d661c9378a51a3dba625 | |
---|---|---|
tagger | Xin Li <delphij@google.com> | Thu Jul 22 20:04:33 2021 -0700 |
object | 8e983bbc0f5f48aa38d0e1c5a37766ce121d28eb |
repo v2.16.3
commit | 8e983bbc0f5f48aa38d0e1c5a37766ce121d28eb | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Tue Jul 20 20:15:30 2021 +0000 |
committer | Xin Li <delphij@google.com> | Tue Jul 20 23:26:01 2021 +0000 |
tree | 36a0f156613796dc4a24ea84d0f31833f0368d62 | |
parent | c34b91c9d80d6d6510c500cb8a8a9ee448963f09 [diff] |
Force a fetch when superproject has a newer SHA1 for remote branch. For older git-repo versions, we might have only fetched the SHA1 revision that was provided by the project, but have remote branch left intact as long as they exist. When the remote branch become stale, some repo operations like rebase would fail, and repo sync would not correct this situation. Fix this by tightening the requirement to also require the superproject provided SHA1 be an ancestor or equal to the tip-of-tree of the remote branch. Bug: [google internal] b/193798453 Change-Id: Ie34c5d860dabb1cbd9f822da929088ec69c79cf6 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/312642 Tested-by: Xin Li <delphij@google.com> Reviewed-by: Raman Tenneti <rtenneti@google.com>
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