From: Antoine Bonavita <antoine@stickyadstv.com>
To: git@vger.kernel.org
Subject: Problem with git-svn with limited SVN access
Date: Wed, 09 Nov 2011 12:28:10 +0100 [thread overview]
Message-ID: <4EBA63CA.7000201@stickyadstv.com> (raw)
Hello,
I have a problem with a git-svn setup and although I spent most of
yesterday googling for a solution but did not find any (see below for my
failed attempts). I hope you guys here will be able to help me.
I have limited access to a SVN repository with a "standard" layout. By
limited, I mean that I am allowed only to access the folders "trunk",
"branches/XXX" and "branches/YYY".
*Attempt 1:*
> git svn init svn://server/aaa/AAA -T trunk -b branches --username=UUU
Initialized empty Git repository in /home/.../.git/
Using higher level of URL: svn://server/aaa/AAA => svn://server/aaa
> git svn fetch
Error from SVN, (220001): Item is not readable: Item is not readable
*Attempt 2:*
> git svn init svn://server/aaa/AAA -T trunk -b branches --username=UUU
--no-minimize-url
Initialized empty Git repository in /home/.../.git/
> git svn fetch
W: Item is not readable: Item is not readable at
/usr/libexec/git-core/git-svn line 1782
Error from SVN, (220001): Item is not readable: Item is not readable
*Attempt 3:*
> git svn init svn://server/aaa/AAA -T trunk --username=UUU
--no-minimize-url
Initialized empty Git repository in /home/.../.git/
> git svn fetch
W: Item is not readable: Item is not readable at
/usr/libexec/git-core/git-svn line 1782
W: Ignoring error from SVN, path probably does not exist: (160013):
Filesystem has no item: File not found: revision 100, path '/AAA/trunk'
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
Read access denied for root of edit: Not authorized to open root of edit
operation at /usr/libexec/git-core/git-svn line 5131
*Attempt 4:*
> git svn init -T svn://server/aaa/AAA/trunk -b
svn://server/aaa/AAA/branches --username=UUU --no-minimize-url
Initialized empty Git repository in /home/.../.git/
svn-remote.svn.url already set: svn://server/aaa/AAA/trunk
wanted to set to: svn://server/aaa/AAA/branches
> git svn fetch
W: Ignoring error from SVN, path probably does not exist: (160013):
Filesystem has no item: File not found: revision 100, path '/AAA/trunk'
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
### stuff actually retrieved from SVN
.....
r6035 = 6163cb28acff14d68f1b96869274b668405897a2 (refs/remotes/trunk)
.....
Compressing objects: 100% (10751/10751), done.
Writing objects: 100% (10886/10886), done.
Total 10886 (delta 9331), reused 0 (delta 0)
Checking out files: 100% (6002/6002), done.
Checked out HEAD:
svn://server/aaa/AAA/trunk r27316
creating empty directory: lib/AAA/mp3gain/otherlang/help
...
### No line with any branch. So it looks like I managed to get the trunk
but not the branches.
*Attempt 5:*
> git svn init -T svn://server/aaa/AAA/trunk -b
svn://server/aaa/AAA/branches --username=UUU --no-minimize-url
Initialized empty Git repository in /home/.../.git/
svn-remote.svn.url already set: svn://server/aaa/AAA/trunk
wanted to set to: svn://server/aaa/AAA/branches
### My .git/config looks like:
[svn-remote "svn"]
url = svn://server/aaa/AAA/trunk
fetch = :refs/remotes/trunk
### If I try to add one of the branches manually:
branches = branches/XXX:refs/remotes/branches/XXX
> git svn fetch
One '*' is needed in glob: 'branches/XXX'
*Attempt 6:*
> git svn init -T svn://server/aaa/AAA/trunk -b
svn://server/aaa/AAA/branches --username=UUU --no-minimize-url
Initialized empty Git repository in /home/.../.git/
svn-remote.svn.url already set: svn://server/aaa/AAA/trunk
wanted to set to: svn://server/aaa/AAA/branches
### I put a glob instead of the branch name in git/.config:
branches = branches/{XXX,YYY}:refs/remotes/branches/*
> git svn fetch
...
Counting objects: 10886, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (10751/10751), done.
Writing objects: 100% (10886/10886), done.
Total 10886 (delta 9330), reused 0 (delta 0)
error: Untracked working tree file 'COPYRIGHT.txt' would be overwritten
by merge.
read-tree -m -u -v HEAD HEAD: command returned error: 128
### Only refs/remotes/trunk checked out. No branch.
At this point, I'm really lost and running out of ideas. If someone
could help me with this, I would be very grateful.
Please forgive me if I posted to the wrong mailing-list but I could not
find a specific git-svn list. If there is such thing, please point me in
the right direction.
Thanks,
Antoine.
--
Antoine Bonavita (antoine@stickyadstv.com)
Envoyé de mon PC. Moi je suis Fedora.
next reply other threads:[~2011-11-09 11:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 11:28 Antoine Bonavita [this message]
2011-11-09 22:38 ` Problem with git-svn with limited SVN access Thomas Rast
2011-11-10 8:36 ` Antoine Bonavita
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=4EBA63CA.7000201@stickyadstv.com \
--to=antoine@stickyadstv.com \
--cc=git@vger.kernel.org \
/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.