Choosing the qt tree to file merge requests

David Faure faure at kde.org
Mon Sep 14 18:07:20 BST 2009


On Monday 14 September 2009, Raphael Kubo da Costa wrote:
> 2009/9/14 David Faure <faure at kde.org>:
> > On Monday 14 September 2009, Thiago Macieira wrote:
> >> Create a branch off the tag:
> >>
> >>         git branch 4.6-tp1 v4.6.0-tp1
> >
> > -obelix- dfaure 18:21 /d/qt/4/kde-qt (4.5.2-patched)>git branch 4.6-tp1
> > v4.6.0-tp1 fatal: Not a valid object name: 'v4.6.0-tp1'.
> >
> >> > `git checkout v4.6.0-tp1` or `git checkout tags/v4.6.0-tp1` doesn't
> >> > work,
> >>
> >> Either should work.
> >
> > -obelix- dfaure 17:56 /d/qt/4/kde-qt (4.5.2-patched)>git checkout
> > v4.6.0-tp1 error: pathspec 'v4.6.0-tp1' did not match any file(s) known
> > to git.
> >
> > -obelix- dfaure 17:55 /d/qt/4/kde-qt (4.5.2-patched)>git checkout
> > tags/v4.6.0-tp1 error: pathspec 'tags/v4.6.0-tp1' did not match any
> > file(s) known to git.
> 
> I think you need to do a 'git fetch --tags' first. According to the
> man page, "Most of the tags are fetched automatically as branch heads
> are downloaded, but tags that do not point at objects reachable from
> the branch heads that are being tracked will not be fetched by this
> mechanism", which seems to be the case. At least I had to do it ;)

Yep. "git fetch" fixed it.
My earlier "git fetch origin tags/v4.6.0-tp1" had fetched the contents
of the tag, but not the tag name itself. Bah.

> >> Tags are global. As soon as you fetched it, it should appear in "git
> >> tag".
> >
> > But how does one list tags in the first place? The only way is to be told
> > the tag name by email??
> 
> git tag

That only shows it now that fetch got it. It's missing a -r option for "remote 
tags", isn't it? OK, "git fetch" gets them, but still... it works differently 
from branches for no reason (on that particular point; getting a list of 
them).

-- 
David Faure, faure at kde.org, sponsored by Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list