在 2017年12月15日星期五 UTC+8下午11:35:33,David Linares写道:
>
> Hi guys,
>
> Hope this is the right group to post this issue.
> Today, I am getting some errors when trying to make a mirror.
> Here are the commands I use and the 2 repos that are giving me errors.
>
>
> repo init -u https://android.googlesource.com/mirror/manifest --mirror
> repo sync
>
> ...
> error: cannot update the ref 'refs/heads/test_upstream': Trying to write 
> non-commit object c3de9cc854adee8d9d82cf6e72f4a12b90dba430 to branch refs/
> heads/test_upstream
> From https://android.googlesource.com/platform/external/nanopb-c
>  ! [new branch]      test_upstream -> test_upstream  (unable to update 
> local ref)
> error: cannot update the ref 'refs/heads/upstream_0.3.8': Trying to write 
> non-commit object c3de9cc854adee8d9d82cf6e72f4a12b90dba430 to branch refs/
> heads/upstream_0.3.8
>  ! [new branch]      upstream_0.3.8 -> upstream_0.3.8  (unable to update 
> local ref)
> error: cannot update the ref 'refs/heads/android-hikey-linaro-4.14': 
> Trying to write non-commit object e3d97e8db5c45dfe3e4c70252acc5f4edea172b7 
> to branch refs/heads/android-hikey-linaro-4.14
> From https://android.googlesource.com/kernel/hikey-linaro
>  ! [new branch]      android-hikey-linaro-4.14 -> android-hikey-linaro-
> 4.14  (unable to update local ref)
> error: Cannot fetch kernel/hikey-linaro
> error: Cannot fetch platform/external/nanopb-c
>
> error: Exited sync due to fetch errors
>
>
> Is there anything I could do in the meantime to ignore these branches or 
> repos?
>

I worked around with following method:
rm -fr kernel/hikey-linaro.git
cd kernel
git clone --mirror https://android.googlesource.com/kernel/hikey-linaro

do the same thing for platform/external/nanopb-c 
<http://android.googlesource.com/platform/external/nanopb-c> project as well

Thanks,
Yongqin Liu

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to