All of lore.kernel.org
 help / color / mirror / Atom feed
From: Seth Falcon <sethfalcon@gmail.com>
To: "Gustaf Hendeby" <hendeby@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Problem using git svn clone
Date: Fri, 25 May 2007 07:13:44 -0700	[thread overview]
Message-ID: <m21wh5kn3b.fsf@ziti.local> (raw)
In-Reply-To: <bf7b2dda0705241539i56f1b5b3kcd001e871e8688ef@mail.gmail.com> (Gustaf Hendeby's message of "Fri, 25 May 2007 00:39:44 +0200")

"Gustaf Hendeby" <hendeby@gmail.com> writes:
> Let me clarify. When trying to check out the module with tags, the first
> example I only get the revisions, no content at all!  I have added some more
> info on this below.

If you see the output of the revisions being pulled from svn this
seems very odd.  Does a 'du -sh' in the created directory confirm no
data is there?  Are you sure it isn't just a matter of nothing getting
checked out for you?

> The second case works as I expected it, I included it as reference, and to
> show that it worked (probably not the smartest thing to do I guess).  Hence,
> probably just the first example is of interest.
>
>> 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:
>
>
> I'm really sorry, I mixed up the config files. :(  So I actually get this
> for the first example not the second:
>
> [core]
>        repositoryformatversion = 0
>        filemode = true
>        bare = false
>        logallrefupdates = true
> [svn-remote "svn"]
>        url = https://foo.bar/a
>        fetch = b/c/trunk:refs/remotes/trunk
>        branches = b/c/branches/*:refs/remotes/*
>        tags = b/c/tags/*:refs/remotes/tags/*
>
> Which looks good I guess...  But to be a bit more clear about what this
> actually gives me in the directory I just cloned to, and this is the
> problem:
>
> $ git checkout -f master

What's in .git/refs/remotes?

Does 'git checkout -b mytrunk refs/remotes/git-svn' work?

> Already on branch "master"
> $ ls -a
> .  ..  .git
> $ du -hs .git/objects
> 186K    .git/objects

A du of the entire .git dir would be more informative.

+ seth

  parent reply	other threads:[~2007-05-25 14:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-05-25 14:46       ` Gustaf Hendeby
2007-05-25 15:39         ` Seth Falcon
2007-05-25 17:41           ` Gustaf Hendeby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m21wh5kn3b.fsf@ziti.local \
    --to=sethfalcon@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=hendeby@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.