All of lore.kernel.org
 help / color / mirror / Atom feed
* Dealing with new git fetcher
@ 2013-12-06 15:08 Gary Thomas
  2013-12-06 15:15 ` Chris Larson
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2013-12-06 15:08 UTC (permalink / raw)
  To: Yocto Project

The 'git' fetcher was recently changed to expect/need the branch
name for the desired revision.  Many recipes don't have this and
the revision is not on the master branch, hence leading to errors
like this:
   ERROR: Fetcher failure: Unable to find revision f89bc066db0569008418fac1a0408a9a57f2232f in branch master even from upstream
   ERROR: Function failed: Fetcher failure for URL: 'git://github.com/boundarydevices/u-boot-imx6.git'. Unable to fetch URL from any source.
   ERROR: Logfile of failure stored in: /local/imx6_new/tmp/work/sabrelite-amltd-linux-gnueabi/u-boot-script-boundary/v2013.01+gitAUTOINC+f89bc066db-r0/temp/log.do_fetch.25272
   ERROR: Task 144 (/local/poky-multi/meta-fsl-arm-extra/recipes-bsp/u-boot/u-boot-script-boundary_git.bb, do_fetch) failed with exit code '1'

So the problem becomes how to identify the branch?  In the case
above, I have a checked out copy of this repository and when I
try to find the branch, I come up empty:
   $ git branch --contains f89bc066db0569008418fac1a0408a9a57f2232f
   $ git log f89bc066db0569008418fac1a0408a9a57f2232f
   commit f89bc066db0569008418fac1a0408a9a57f2232f
   Author: Eric Nelson <eric.nelson@boundarydevices.com>
   Date:   Mon Aug 26 17:36:35 2013 -0700
       i.MX6: nitrogen6x: Add Yocto boot script

So I see that the commit is present, but when I ask what branch, I
get nothing...

Any ideas how to proceed?

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dealing with new git fetcher
  2013-12-06 15:08 Dealing with new git fetcher Gary Thomas
@ 2013-12-06 15:15 ` Chris Larson
  2013-12-06 15:18   ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Larson @ 2013-12-06 15:15 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 1841 bytes --]

On Fri, Dec 6, 2013 at 8:08 AM, Gary Thomas <gary@mlbassoc.com> wrote:

> The 'git' fetcher was recently changed to expect/need the branch
> name for the desired revision.  Many recipes don't have this and
> the revision is not on the master branch, hence leading to errors
> like this:
>   ERROR: Fetcher failure: Unable to find revision
> f89bc066db0569008418fac1a0408a9a57f2232f in branch master even from
> upstream
>   ERROR: Function failed: Fetcher failure for URL: 'git://github.com/
> boundarydevices/u-boot-imx6.git'. Unable to fetch URL from any source.
>   ERROR: Logfile of failure stored in: /local/imx6_new/tmp/work/
> sabrelite-amltd-linux-gnueabi/u-boot-script-boundary/v2013.
> 01+gitAUTOINC+f89bc066db-r0/temp/log.do_fetch.25272
>   ERROR: Task 144 (/local/poky-multi/meta-fsl-
> arm-extra/recipes-bsp/u-boot/u-boot-script-boundary_git.bb, do_fetch)
> failed with exit code '1'
>
> So the problem becomes how to identify the branch?  In the case
> above, I have a checked out copy of this repository and when I
> try to find the branch, I come up empty:
>   $ git branch --contains f89bc066db0569008418fac1a0408a9a57f2232f
>   $ git log f89bc066db0569008418fac1a0408a9a57f2232f
>   commit f89bc066db0569008418fac1a0408a9a57f2232f
>   Author: Eric Nelson <eric.nelson@boundarydevices.com>
>   Date:   Mon Aug 26 17:36:35 2013 -0700
>       i.MX6: nitrogen6x: Add Yocto boot script
>
> So I see that the commit is present, but when I ask what branch, I
> get nothing...
>

You asked git only about local branches.

$ git branch -a --contains f89bc066db0569008418fac1a0408a9a57f2232f
  remotes/origin/production-before-20131107
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 2722 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dealing with new git fetcher
  2013-12-06 15:15 ` Chris Larson
@ 2013-12-06 15:18   ` Gary Thomas
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2013-12-06 15:18 UTC (permalink / raw)
  To: Chris Larson; +Cc: Yocto Project

On 2013-12-06 08:15, Chris Larson wrote:
>
> On Fri, Dec 6, 2013 at 8:08 AM, Gary Thomas <gary@mlbassoc.com <mailto:gary@mlbassoc.com>> wrote:
>
>     The 'git' fetcher was recently changed to expect/need the branch
>     name for the desired revision.  Many recipes don't have this and
>     the revision is not on the master branch, hence leading to errors
>     like this:
>        ERROR: Fetcher failure: Unable to find revision f89bc066db0569008418fac1a0408a__9a57f2232f in branch master even from upstream
>        ERROR: Function failed: Fetcher failure for URL: 'git://github.com/__boundarydevices/u-boot-imx6.__git <http://github.com/boundarydevices/u-boot-imx6.git>'. Unable to fetch
>     URL from any source.
>        ERROR: Logfile of failure stored in:
>     /local/imx6_new/tmp/work/__sabrelite-amltd-linux-gnueabi/__u-boot-script-boundary/v2013.__01+gitAUTOINC+f89bc066db-r0/__temp/log.do_fetch.25272
>        ERROR: Task 144 (/local/poky-multi/meta-fsl-__arm-extra/recipes-bsp/u-boot/u__-boot-script-boundary_git.bb <http://u-boot-script-boundary_git.bb>, do_fetch) failed with exit
>     code '1'
>
>     So the problem becomes how to identify the branch?  In the case
>     above, I have a checked out copy of this repository and when I
>     try to find the branch, I come up empty:
>        $ git branch --contains f89bc066db0569008418fac1a0408a__9a57f2232f
>        $ git log f89bc066db0569008418fac1a0408a__9a57f2232f
>        commit f89bc066db0569008418fac1a0408a__9a57f2232f
>        Author: Eric Nelson <eric.nelson@boundarydevices.__com <mailto:eric.nelson@boundarydevices.com>>
>        Date:   Mon Aug 26 17:36:35 2013 -0700
>            i.MX6: nitrogen6x: Add Yocto boot script
>
>     So I see that the commit is present, but when I ask what branch, I
>     get nothing...
>
>
> You asked git only about local branches.
>
> $ git branch -a --contains f89bc066db0569008418fac1a0408a9a57f2232f
>    remotes/origin/production-before-20131107

Perfect (I should have known!)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-06 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-06 15:08 Dealing with new git fetcher Gary Thomas
2013-12-06 15:15 ` Chris Larson
2013-12-06 15:18   ` Gary Thomas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.