1

In SVN tags are just another URL. So when I clone a URL which points to a tag using git svn clone <url_of_tag>, I expected it to fetch the complete history of the tag but it does not. A git log after the clone shows,

<some_hash> git-svn-id: <tag_url>@12256 eaa63c25-6722-0410-8f96-99d88de8df57

git svn clone <url_of_trunk> works fine.

How do I clone a tag URL along with the complete history?

Chandra Sekar
  • 10,683
  • 3
  • 39
  • 54

1 Answers1

2

Considering that a tag, in SVN is supposed to be immutable (in that you should not do any more version in a SVN tag), it is not surprising that the git svn script doesn't find many commit to create when reading the history of the SVN repo under a tag url.
(See What do “branch”, “tag” and “trunk” really mean? in SVN)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Except for the fact that the URL contains the string "tags", there is nothing to say that this is a tag in SVN. Is there a way to force git svn to consider it as just another SVN URL? – Chandra Sekar Jul 23 '11 at 09:27
  • @Chandru: considering the parameters of git svn, there might actually be a way: try mentioning `--trunk=` and see if that helps. – VonC Jul 23 '11 at 11:07