threads / bug / 2569

[BUG] git-svnimport doesn't import actual code

Subject: [BUG] git-svnimport doesn't import actual code

## tl;dr

2 messages between Nov 17, 2005 and Nov 17, 2005.

replies: 1people: 2as markdown or json

Panagiotis Issaris· Nov 17, 2005, 16:06 UTC · lore
Hi,

When importing a Subversion tree into a GIT tree using git-svnimport I ended up with a git tree containing the number of expected commits, complete with logmessages and timestamps, but no files showed up. Using gitk shows me a large list of commits, but again, no diffs show up. Using "cg-log -f" shows all the commits, but no files are shown related to the commits.

This was the command used to import the Subversion repository: git-svnimport -v svn://svn.berlios.de/rtnet/trunk

Here's a screenshot of gitk viewing the GIT-repository: http://flickr.com/photos/takis/64214074/

With friendly regards, Takis

-- 
OpenPGP key: http://issaris.org/~takis/takis_public_key.txt
fingerprint: 6571 13A3 33D9 3726 F728  AA98 F643 B12E ECF3 E029
Matthias Urlichs· Nov 17, 2005, 17:05 UTC · re: Panagiotis Issaris · lore

Re: [BUG] git-svnimport doesn't import actual code

Hi, Panagiotis Issaris wrote:
> git-svnimport -v svn://svn.berlios.de/rtnet/trunk

That's easy -- you can't svn-pull the trunk that way. (Note that you got a lot of "skipped" messages...)

Just drop the "trunk", add a "-b branches" if that repository needs it, and svnimport will handle it.

ASIDE: All the repositories in my import list need that flag, so I am
considering changing the default name from "branch" to "branches".
Objections, anybody?
-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
It is impossible to travel faster than light, and certainly not desirable,
as one's hat keeps blowing off.
		-- Woody Allen

← back to recent threads