我在本地的比特桶服务器上储存了专有的仓库。我还创建了local_manifest.xml
来替换本地的上游仓库。
这一切都很好,它拉本地存储库而不是上游,并建立了android图像的变化。
有一些新的更改被推送到本地仓库,我想提取local_manifest. xml的所有本地仓库部分,并忽略上游项目,因为它不会为我的平台而改变。
我尝试了repo sync
,但它在以下阻塞,不向前移动。^C跳过该存储库的同步,但它也会阻止来自local_manifest.xml的存储库
$ repo sync
... A new version of repo (2.32) is available.
... You should upgrade soon:
cp /aosp/.repo/repo/repo /home/ubuntu/bin/repo
remote: Enumerating objects: 126154, done.
remote: Counting objects: 100% (8123/8123), done.
remote: Compressing objects: 100% (106/106), done.
remote: Total 126154 (delta 8051), reused 8015 (delta 8011), pack-reused 118031
Receiving objects: 100% (126154/126154), 98.97 MiB | 14.81 MiB/s, done.
Resolving deltas: 100% (56268/56268), completed with 737 local objects.
project .repo/manifests/
Updating 2e1ad2ab0..ac52b2de4
Fast-forward
Fetching: 0% (1/759) Last synced: repo^CKeyboard interrupt while processing platform/external/chromium-webview
Fetching: 0% (3/759) Last synced: local_repo^CKeyboard interrupt while processing platform/prebuilts/android-emulator
^Caborted by user
^C
如何只同步local_manifest. xml中的存储库,而忽略所有其他上游存储库?
1条答案
按热度按时间i86rm4rw1#
如果您检查here从ElpieKay到原始问题的评论,
repo sync
被设计为检出分离的HEAD...您可以尝试将
repo sync
与-f: Proceed with syncing other projects even if a project fails to sync.
一起使用。因此,以下命令应该从local_manifest. xml指定的分支中提取最新更改
repo sync -f -c