首页 > 其他 > 详细

yocto编译时报错"fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead"如何处理?

时间:2020-05-28 22:01:51      阅读:562      评论:0      收藏:0      [点我收藏+]

答: 替换--set-upstream为--set-upstream-to, 示例如下:

--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -326,7 +326,7 @@ class Git(FetchMethod):
                 branchname =  ud.branches[ud.names[0]]
                 runfetchcmd("%s checkout -B %s %s" % (ud.basecmd, branchname,                              ud.revisions[ud.names[0]]), d, workdir=destdir)
-                runfetchcmd("%s branch --set-upstream %s origin/%s" % (ud.basecmd, branchname, +                runfetchcmd("%s branch %s --set-upstream-to origin/%s" % (ud.basecmd, branchname,                              branchname), d, workdir=destdir)
             else:
                 runfetchcmd("%s checkout %s" % (ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=destdir)

yocto编译时报错"fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead"如何处理?

原文:https://www.cnblogs.com/dakewei/p/12983757.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!