Fetching into non-bare repository with bitbake

半城伤御伤魂 提交于 2019-12-12 02:12:14

问题


Looks like I am facing a trivial issue, but I am not able to figure out anything. I was trying to bitbake the raspberry pi image and due to bad internet connection, it failed. Now when I retried to bitbake again, it gives me the below error.

fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository

I understand that, this is because my git repository is no longer bare. After searching a lot on the internet, I found only one solution. Running the below command will probably fix the issue.

bitbake -c cleanall

As per my understanding this will clear most of the contents of the build directory of poky. I want to avoid this. Is there any way I can continue bitbaking without cleaning all the stuff that I have downloaded so far ?


回答1:


You need to know what package is failing (and bitbake tells that), after that doing something like

$ bitbake -c cleansstate $PACKAGE_NAME
$ rm -fr ${DL_DIR}/git2/$REPOSITORY

(where $PACKAGE_NAME is your package name, ${DL_DIR} is the variable from local.conf (defaults to build/downloads) and $REPOSITORY is the repository (URL from the recipe) for this $PACKAGE_NAME) should be enough.



来源:https://stackoverflow.com/questions/39104055/fetching-into-non-bare-repository-with-bitbake

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!