[bitbake-devel] [PATCH] fetch2/git: Anchor names when using ls-remote

Martin Jansa martin.jansa at gmail.com
Mon Jan 20 16:18:05 UTC 2014


On Mon, Jan 20, 2014 at 04:57:34PM +0100, Olof Johansson wrote:
> On 14-01-20 16:21 +0100, Richard Purdie wrote:
> > When specifying tags, they're searched for unanchored so foo/bar could
> > match:
> > 
> > refs/heads/abc/foo/bar
> > refs/heads/xyz/foo/bar
> > refs/heads/foo/bar
> > 
> > This change anchors the expressions so they are based against heads
> > or tags (or any other base level tree that has been created).
> 
> Afaict, ls-remote matches the wildcard character against any
> character, including /.
> 
> $ git ls-remote gittest refs/*/foo/bar
> 69ab4bdbb5f3725ca594a2abdb636ee8fc25e1c4        refs/tags/abc/foo/bar
> c8647b027d88af180e90d842577518b73ef6a167        refs/tags/foo/bar
> 149c3c329515086af1ae4e24b12b17100ae16256        refs/tags/xyz/foo/bar

Yes, I've seen the same behavior:

http://lists.openembedded.org/pipermail/bitbake-devel/2013-August/003724.html

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20140120/4c7fe580/attachment-0002.sig>


More information about the bitbake-devel mailing list