git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem using git svn clone
@ 2007-05-24 21:35 Gustaf Hendeby
  2007-05-24 21:46 ` Seth Falcon
  0 siblings, 1 reply; 7+ messages in thread
From: Gustaf Hendeby @ 2007-05-24 21:35 UTC (permalink / raw)
  To: git

Hi!

I have a problem with git-svn, which I hope the list can shed some
light over.  I'm quite new to git (but so far I really like it, great
job guys!) and I never use SVN, so don't really know what information
may be needed to be able to help me on the right track.  I hope the
below problem description is appropriate.


The situation is as follows:

I plan to use git and git svn to track a module in the middle of a SVN
repository (which I have no control over) where I don't have read
access more than to this specific module and the base directory, ie
the layout is similar to this
	https://svn.foo.bar/a/b/c/trunk
	https://svn.foo.bar/a/b/c/tags
	https://svn.foo.bar/a/b/c/branches
and I have read access to https://svm.foo.bar/a,
https://svn.foo.bar/a/b/c and below, but nothing else.

What I want to do is clone the whole thing, including tags and
branches.  I expected to be able to use the following command to do
this (git v1.5.2):

$ git svn clone https://svn.foo.bar/a/b/c -T trunk -t tags -b branches

Initialized empty Git repository in .git/
Using higher level of URL: https://svn.foo.bar/a/b/c => https://svn.foo.bar/a

W: Ignoring error from SVN, path probably does not exist: (175002): RA
layer request failed: REPORT request failed on '/a/!svn/bc/100':
REPORT of '/a/!svn/bc/100': Could not read chunk size: Secure
connection truncated (https://svn.foo.bar)
r306 = 83f0c10b988a8f1e77a3f354126c52f0cfdecf76 (trunk)
[...]
Found possible branch point: https://svn.foo.bar/a/b/c/trunk =>
https://svn.foo.bar/a/b/c/tags/0.1, 314
Found branch parent: (tags/0.1) ad6a2361d0e69d6288ef226bb335bb4bf3bdd12e
Following parent with do_update
Successfully followed parent
r315 = 3b92c4885b9d6f60241533dd99fa5023eebb1c64 (tags/0.1)
r316 = 02e3b828b4f11c5fab9d10d85076a8ff209afa00 (trunk)
[...]

However, it seems I just get the info about the revisions (shows up
nicely in gitk) but no content at all.  The config file reads:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[svn-remote "svn"]
        url = https://svn.foo.bar/a/b/c/trunk
        fetch = :refs/remotes/git-svn


If I instead do:

$ git svn clone https://svn.foo.bar/a/b/c/trunk
Initialized empty Git repository in .git/
W: Ignoring error from SVN, path probably does not exist: (175007):
HTTP Path Not Found: REPORT request failed on
'/a/!svn/bc/100/b/c/trunk': '/a/!svn/bc/100/b/c/trunk' path not found
W: +empty_dir: source
W: +empty_dir: test
r306 = 83f0c10b988a8f1e77a3f354126c52f0cfdecf76 (git-svn)
        A       resources/extensions/circuitparts.drext
[...]
r309 = 3a386e9b985c419d129461acbf24978795b36b96 (git-svn)
        A       tools/source/physical.cc
[...]

I get all content in trunk and their revision history, but as expected
no tag info.  The config file reads:

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[svn-remote "svn"]
        url = https://svn.foo.bar/a
        fetch = b/c/trunk:refs/remotes/trunk
        branches = b/c/branches/*:refs/remotes/*
        tags = b/c/tags/*:refs/remotes/tags/*


Removing trunk from the URL yields all the files in trunk, tags, and
branches with a similar output.

Please, let me know if information is missing.  I'd be very thankful
for any help that I can get to sort this out.

/Gustaf

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-25 17:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-24 21:35 Problem using git svn clone Gustaf Hendeby
2007-05-24 21:46 ` Seth Falcon
     [not found]   ` <bf7b2dda0705241539i56f1b5b3kcd001e871e8688ef@mail.gmail.com>
2007-05-24 22:48     ` Fwd: " Gustaf Hendeby
2007-05-25 14:13     ` Seth Falcon
2007-05-25 14:46       ` Gustaf Hendeby
2007-05-25 15:39         ` Seth Falcon
2007-05-25 17:41           ` Gustaf Hendeby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).