git/list[1] front-page[2] threads[3] people[4] search[5] about
 

how to skip branches on git svn clone/fetch when there are errors

From
DSDaniele Segato <daniele.bilug@gmail.com>
Date
Aug 31, 2009, 08:26 UTC
Message-ID
<9accb4400908310126v15b08c7fr425c9daff26012f3@mail.gmail.com>
Hi,
I'm trying to clone a big repository.
I follow this steps:

git init git svn init svn://svn.mydomain.com/path/to/repo -T HEAD -b BRANCHES -t TAGS

vim .git/config # edited the svn-remote config as follow (add /root to
branches and tag) to match the repo structure
[svn-remote "svn"]
       url = svn://svn.mydomain.com
       fetch = path/to/repo/HEAD/root:refs/remotes/svn/trunk
       branches = path/to/repo/BRANCHES/*/root:refs/remotes/svn/*
       tags = path/to/repo/TAGS/*/root:refs/remotes/svn/tags/*
git svn fetch
When I reach revision ~7500 (I don't remember the exact number) I get an error:

$ git svn fetch Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/SVN/Core.pm line 584. Authorization failed: at /usr/bin/git-svn line 1415

After some debugging I found out the reason is something strange on the SVN server: there is a folder in the SVN that give an error when trying to access:

$ svn info svn://svn.mydomain.com/path/to/repo/BRANCHES/V2.1-A svn: Authorization failed

The same error with svn list.
I don't know what's wrong with that branch but I just want to skip it...
I tried modifying the .git/config svn-remote configuration adding this:
ignore-paths = path\\/to\\/repo\\/BRANCHES\\/V2\\.1-A
and re-launching git svn fetch.
I had no luck.
Ho do I skip a path on the svn repository?

(I can't provide the real svn repo because it is password protected and I can't give you the access)

Thanks, Regards, Daniele

Next: Eric Wong
Message 1 of 9 in “how to skip branches on git svn clone/fetch when there are errors”
  1. Daniele SegatoAug 31, 2009
  2. Eric WongSep 5, 2009
  3. Daniele SegatoSep 5, 2009
  4. Eric WongSep 6, 2009
  5. Daniele SegatoSep 7, 2009
  6. Daniele SegatoSep 7, 2009
  7. Daniele SegatoSep 7, 2009
  8. Paolo CiarrocchiSep 7, 2009
  9. Daniele SegatoSep 7, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.