commit | 6c5944606af3c52626745b5256e9e5f0d5c362a2 | [log] [tgz] |
---|---|---|
author | Aymen Bouaziz <aymen.bouaziz@parrot.com> | Tue Oct 25 18:03:51 2016 +0200 |
committer | Aymen Bouaziz <aymen.bouaziz@parrot.com> | Fri Oct 28 14:29:57 2016 +0200 |
tree | a34387f91d0a67c01455c2a211ae5401fe5a2bda | |
parent | eceeb1b1f5edb0f42e690bffdf81828abd8ea7fe [diff] |
Fix checkout error when depth passed to repo init and revision is a sha1 Currently, if direct fetch of a sha1 is not supported by git server and depth option is used, we fallback on syncing the upstream branch by ignoring depth option. This fallback doesn't work in next 2 cases: (1) upstream attribute is not specified in manifest (2) depth option is passed to repo init command (not with clone-depth attribute in manifest) This commit do the following: - fixes (1) by updating condition used to apply fallback first we retry with depth set to None, then by syncing all branches - fixes (2) by passing depth as argument of _RemoteFetch() method thus, its value is not set again to depth value passed to repo init command when applying fallback Change-Id: Ifd6fffafc49ba229df624b0d7b64c83d47619d17
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.