今天,我对 AOSP 存储库进行了repo 同步
,然后收到了一些错误。这些是我从终端收到的内容:
From https://android.googlesource.com/platform/external/dtc
! [rejected] android-q-preview-1 -> android-q-preview-1 (would clobber existing tag)
! [rejected] android-q-preview-4 -> android-q-preview-4 (would clobber existing tag)
! [rejected] android-q-preview-5 -> android-q-preview-5 (would clobber existing tag)
! [rejected] android-q-preview-6 -> android-q-preview-6 (would clobber existing tag)
error: Cannot fetch platform/external/dtc
warn: --force-broken, continuing to sync
我该如何解决上述问题?
谢谢。
最佳答案
看来“有人”强制标签在公共(public)项目中移动......啧,啧。无论如何,我也遇到了这个问题,并且我花了比我愿意承认的更长的时间才看到明显的解决方案:只需从我的本地存储库中删除有问题的标签即可。看起来像这样:
$ repo forall -c "git tag -d android-q-preview-1 android-q-preview-4 android-q-preview-5 android-q-preview-6"
$ repo sync
YMMV
关于android - repo 同步 : ! [拒绝] android-q-preview-4 -> android-q-preview-4 (会破坏现有标签),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57723043/