使用bitbake提取到非裸仓库中 [英] Fetching into non-bare repository with bitbake

查看:127
本文介绍了使用bitbake提取到非裸仓库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看起来我面临着一个琐碎的问题,但我无能为力. 我试图对树莓派图像进行位烤,但由于互联网连接不良,它失败了.现在,当我再次尝试Bitbake时,它给了我下面的错误.

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.

致命的:拒绝获取当前分支的refs/heads/master 非裸仓库

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

我知道,这是因为我的git存储库不再裸露.在互联网上搜索了很多之后,我只找到一种解决方案.运行以下命令可能会解决该问题.

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

bitbake -c cleanall

据我了解,这将清除poky构建目录的大部分内容.我想避免这种情况.有什么方法可以继续进行比特烤而不用清理到目前为止已下载的所有内容?

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 ?

推荐答案

在执行类似操作之后,您需要知道哪个软件包失败了(并且bitbake告诉了这个问题)

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

(其中$PACKAGE_NAME是您的软件包名称,${DL_DIR}local.conf中的变量(默认为build/downloads),而$REPOSITORY是该$PACKAGE_NAME的存储库(配方中的URL))足够.

(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.

这篇关于使用bitbake提取到非裸仓库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆