[oe] [PATCH] metadata_scm.bbclass: get the metadata revision for current HEAD
Chris Larson
clarson at kergoth.com
Thu Nov 4 16:08:48 UTC 2010
On Thu, Nov 4, 2010 at 8:59 AM, Khem Raj <raj.khem at gmail.com> wrote:
> > The issue is, show-ref shows all refs which match the supplied search
> > string. show-ref HEAD will show all the HEAD refs, both local and the
> ones
> > in all your remotes, which isn't what we want for METADATA_REVISION. I'm
> > testing a patch which changes it to use rev-parse to get the commit hash
> for
> > HEAD rather than show-ref.
>
> FWIW you could also use git show-ref --head <branch>
Yeah, that will work if the <branch> is the full path including refs/heads/,
but it's not using the right plumbing tool for the job. show-ref is
designed to *list* refs in the repo, not resolve a single one.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
More information about the Openembedded-devel
mailing list