Discussion:
git-svn doesn't fetch anything
Harry Vangberg
2009-02-04 23:49:10 UTC
Permalink
Hello

I have read access to a Subversion repo with standard layout at
https://svn.turntool.com/svn/turntool/plantool

Using git version 1.6.1.2 I would like to use git-svn, so I do a clone:

$ git svn clone https://svn.turntool.com/svn/turntool/plantool -s
--username=harry
Initialized empty Git repository in /Users/h/work/projsvn/plantool/.git/
Error validating server certificate for 'https://svn.turntool.com:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: svn.turntool.com
- Valid: from Mon, 19 Nov 2007 11:16:34 GMT until Sat, 14 Aug 2010 11:16:34 GMT
- Issuer: Subversion Repositories, TurnTool ApS, Aarhus C, Jylland, DK
- Fingerprint: e5:fd:0e:0a:5a:b3:8b:2d:a0:77:16:ac:16:ca:94:a0:ad:1e:15:6c
(R)eject, accept (t)emporarily or accept (p)ermanently? p
Authentication realm: <https://svn.turntool.com:443> TurnTool
Subversion Repository
Password for 'harry':
Authentication realm: <https://svn.turntool.com:443> TurnTool
Subversion Repository
Password for 'harry':
Authentication realm: <https://svn.turntool.com:443> TurnTool
Subversion Repository
Password for 'harry':
W: Ignoring error from SVN, path probably does not exist: (160013):
Filesystem has no item: '/svn/turntool/!svn/bc/100/plantool' path not
found
W: Do not be alarmed at the above message git-svn is just searching
aggressively for old history.
This may take a while on large repositories

I've been told that it is supposed to tell me a lot about fetched
revisions, but there's nothing. And the directory is completely empty
except for .git - here's my config:

$ cd plantool/
$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[svn-remote "svn"]
url = https://svn.turntool.com/svn/turntool/plantool
fetch = trunk:refs/remotes/trunk
branches = plantool/branches/*:refs/remotes/*
tags = plantool/tags/*:refs/remotes/

I would really like this to work, so if anybody has some pointers, please.
Björn Steinbrink
2009-02-05 03:36:38 UTC
Permalink
Post by Harry Vangberg
I've been told that it is supposed to tell me a lot about fetched
revisions, but there's nothing. And the directory is completely empty
=20
$ cd plantool/
$ cat .git/config
[core]
repositoryformatversion =3D 0
filemode =3D true
bare =3D false
logallrefupdates =3D true
ignorecase =3D true
[svn-remote "svn"]
url =3D https://svn.turntool.com/svn/turntool/plantool
fetch =3D trunk:refs/remotes/trunk
branches =3D plantool/branches/*:refs/remotes/*
tags =3D plantool/tags/*:refs/remotes/
Hm, the branches and tags config looks weird to me. Is the path to them
really ".../turntool/plantool/plantool/branches"?

Bj=F6rn
Harry Vangberg
2009-02-05 08:54:53 UTC
Permalink
Hm, the branches and tags config looks weird to me. Is the path to th=
em
really ".../turntool/plantool/plantool/branches"?
I tried doing this:

$ git svn init https://svn.turntool.com/svn/turntool/plantool -s
--username=3Dharry
Initialized empty Git repository in /Users/h/work/projsvn/.git/
$

Then I changed .git/config to look like this:

$ cat .git/config
[core]
repositoryformatversion =3D 0
filemode =3D true
bare =3D false
logallrefupdates =3D true
ignorecase =3D true
[svn-remote "svn"]
url =3D https://svn.turntool.com/svn/turntool/plantool
fetch =3D trunk:refs/remotes/trunk
branches =3D branches/*:refs/remotes/*
tags =3D tags/*:refs/remotes/tags/*
$

And finally tried to fetch it all

$ git svn fetch --all
$

It simply exists quietly, still without fetching *anything* and
leaving me in no branch, in an empty dir. :/
Michael J Gruber
2009-02-05 11:08:26 UTC
Permalink
Post by Harry Vangberg
Hm, the branches and tags config looks weird to me. Is the path to t=
hem
Post by Harry Vangberg
really ".../turntool/plantool/plantool/branches"?
=20
=20
$ git svn init https://svn.turntool.com/svn/turntool/plantool -s
--username=3Dharry
Initialized empty Git repository in /Users/h/work/projsvn/.git/
$
Is there a read-only guest account or something which could help us
track this down? Otherwise the answer will probably be "it should work
like that, it must be a weird repo".

Cheers,
Michael

Harry Vangberg
2009-02-05 08:43:27 UTC
Permalink
This is what prints when the path you're interested in doesn't exist
in early revisions, which is very common in large shared svn
repositories. Git has to ask svn at each revision, essentially,
whether that path has been born. 'This may take a while on large
repositories' is quite accurate; if you wait long enough, you'll get
revisions.
I wait until it is finished - but it never gets to fetching revisions,
it just exists quietly and returns to commando prompt.

The branches/tags config is what is generated for me. The path for
branches and tags is:

https://svn.turntool.com/svn/turntool/plantool/branches/
https://svn.turntool.com/svn/turntool/plantool/tags/

I have tried changing the config for these, but can't find the right
one. Anyways, not even trunk is being fetched.
Loading...