500 server error with "git svn clone" on SVN repo

Showing 1-11 of 11 messages
500 server error with "git svn clone" on SVN repo Peter Nicolai 8/26/11 9:43 AM
Hi,

I set up a test SVN repository in SCM Manager and committed trunk/ branches/ tags/ directories with some random files. I then tried to "git svn clone" the repository, and got this output: 

C:\Users\me\Desktop\svn-test-git>git svn init https://myserver/scm/sv
n/svn-test/ --username scmadmin
Initialized empty Git repository in C:/Users/me/Desktop/svn-test-git/.gi
t/

C:\Users\me\Desktop\svn-test-git>git svn clone https://myserver/scm/s
vn/svn-test/ --username scmadmin
Initialized empty Git repository in c:/Users/me/Desktop/svn-test-git/svn
-test/.git/
RA layer request failed: REPORT request failed on '/scm/svn/svn-test/!svn/vcc/de
fault': REPORT of '/scm/svn/svn-test/!svn/vcc/default': 500 Server Error (https:
//myserver) at C:\Program Files (x86)\Git/libexec/git-core/git-svn line 5162

I am pretty sure this isn't git's fault since I can "git svn clone" our regular (apache-based) repository the same way without problems.

BTW, thanks for making such an awesome free web app. Reminds me of hudson (now jenkins) in its early days..

Re: 500 server error with "git svn clone" on SVN repo Sebastian Sdorra 8/27/11 7:41 AM
Hi,
I can reproduce this error. I could reproduce the problem only on
Windows, on the Mac everything works without problems. I will try to
fix this.

Sebastian

2011/8/26 Peter Nicolai <pnic...@gmail.com>:

Re: 500 server error with "git svn clone" on SVN repo Sebastian Sdorra 8/27/11 8:33 AM
Hi,
It seems that the windows client does not send an depth element.
Here is the request from the mac client:

    <S:update-report send-all="true" xmlns:S="svn:">
        <S:src-path>http://hades:8080/scm/svn/scm-svn</S:src-path>
        <S:target-revision>1</S:target-revision>
        <S:depth>infinity</S:depth>
        <S:entry rev="1" depth="infinity" start-empty="true"></S:entry>
    </S:update-report>

And here is the request from the windows client:

    <S:update-report send-all="true" xmlns:S="svn:">
        <S:src-path>http://hades:8080/scm/svn/scm-svn</S:src-path>
        <S:target-revision>1</S:target-revision>
        <S:entry rev="1" start-empty="true"></S:entry>
    </S:update-report>

I will try to use a default infinity depth, if the client does not
send an "depth" element.

2011/8/27 Sebastian Sdorra <s.sd...@gmail.com>:

Re: 500 server error with "git svn clone" on SVN repo Sebastian Sdorra 8/27/11 9:14 AM
Hi,
Could you please test this version
http://download.scm-manager.org/issues/45/scm-server-app-1.7-SNAPSHOT.zip

Sebastian

Re: 500 server error with "git svn clone" on SVN repo Peter Nicolai 8/29/11 4:45 PM
Tried it - got same exact error.
Re: 500 server error with "git svn clone" on SVN repo Sebastian Sdorra 8/29/11 11:08 PM
Strange. Which Version of git do you use?

2011/8/30 Peter Nicolai <pnic...@gmail.com>:


> Tried it - got same exact error.
>

Re: 500 server error with "git svn clone" on SVN repo Peter Nicolai 9/1/11 9:08 AM
git --version reports 'git version 1.7.6.msysgit.0'


Re: 500 server error with "git svn clone" on SVN repo Peter Nicolai 9/1/11 12:13 PM
OK - I don't know what was messed up before - the web interface said 1.7-SNAPSHOT and everything - but I reinstalled & restarted the server and everything works now. thanks!
Re: 500 server error with "git svn clone" on SVN repo Peter Nicolai 9/1/11 1:06 PM
Oops - it only worked because I was cloning an empty repo. When the repo's not empty, I still can't git svn clone
Re: 500 server error with "git svn clone" on SVN repo Sebastian Sdorra 9/2/11 2:27 AM
Could you please test this
http://download.scm-manager.org/issues/45/scm-server-app-1.7-2011090201.zip
version.

2011/9/1 Peter Nicolai <pnic...@gmail.com>:


> Oops - it only worked because I was cloning an empty repo. When the repo's
> not empty, I still can't git svn clone
>

Re: 500 server error with "git svn clone" on SVN repo Peter Nicolai 9/6/11 11:35 AM
OK, I was able to git svn clone a repo, then did a series of commits between the git working copy and an svn working copy using dcommit & rebase, and all those things worked on Windows with this version.