threads / discuss / 27565

git fast-export and lightweight tags

Subject: git fast-export and lightweight tags

## tl;dr

4 messages between Jun 7, 2011 and Jun 7, 2011.

replies: 3people: 2as markdown or json

Philippe De Muyter· Jun 7, 2011, 11:02 UTC · lore
Hello list,
I have a git project with plenty of tags created by
	git tag MYTAG
When I clone my git repo, I find my tags again using
	git tag
When I display it using gitweb or the git plugin for trac, I see them also.
But when I use
	git fast-export master

which is invoked by git2svn, my tags are not exported. I checked that using the following :

	git fast-export master > /tmp/repo.dump
	mkdir /tmp/repo.fast-imported
	cd /tmp/repo.fast-imported
	git init
	git fast-import < /tmp/repo.dump
How can I convince fast-export to export my tags ?
Philippe
Sverre Rabbelier· Jun 7, 2011, 14:10 UTC · re: Philippe De Muyter · lore

Re: git fast-export and lightweight tags

Heya,
On Tue, Jun 7, 2011 at 13:02, Philippe De Muyter <phdm@macqel.be> wrote:
> How can I convince fast-export to export my tags ?
Untested, this is just from memory:
$ git fast-export --all --tags
-- 
Cheers,

Sverre Rabbelier
Philippe De Muyter· Jun 7, 2011, 14:33 UTC · re: Sverre Rabbelier · lore

Re: git fast-export and lightweight tags

Hi Sverre,
On Tue, Jun 07, 2011 at 04:10:45PM +0200, Sverre Rabbelier wrote:
Show 8 quoted lines
> Heya,
> 
> On Tue, Jun 7, 2011 at 13:02, Philippe De Muyter <phdm@macqel.be> wrote:
> > How can I convince fast-export to export my tags ?
> 
> Untested, this is just from memory:
> 
> $ git fast-export --all --tags
Yes, that works, but neither
$ git help fast-export
nor
$ git fast-export
does mention it :(
Thanks
Philippe
-- 
Philippe De Muyter +32 2 6101532 Macq SA rue de l'Aeronef 2 B-1140 Bruxelles
Sverre Rabbelier· Jun 7, 2011, 14:48 UTC · re: Philippe De Muyter · lore

Re: git fast-export and lightweight tags

Heya,
On Tue, Jun 7, 2011 at 16:33, Philippe De Muyter <phdm@macqel.be> wrote:
Show 9 quoted lines
> Yes, that works, but neither
>
> $ git help fast-export
>
> nor
>
> $ git fast-export
>
> mention it :(
Kind of.

[<git-rev-list-args>…] A list of arguments, acceptable to git rev-parse and git rev-list, that specifies the specific objects and references to export. For example, master~10..master causes the current master reference to be exported along with all objects added since its 10th ancestor commit.

But, yeah. Not very intuitive I agree.
-- 
Cheers,

Sverre Rabbelier

← back to recent threads