1

I am following this thread Pushing an existing git repository to SVN to sync a git repository to svn. However I am stuck at git svn fetch

git svn fetch
RA layer request failed: REPORT of '/svnrepos/my_git/!svn/vcc/default': Could not read chunk size: Secure connection truncated (https://my.svn.net) at /usr/libexec/git-core/git-svn line 5061

Anybody has an idea of how to work around this...

[Additional information]: I am behind a corporate proxy, but the svn url is reachable without proxy. Anyway I already tried set and unset http-proxy-host and http-proxy-host, http-proxy-port, http-proxy-username, http-proxy-password, none of which worked.

[Additional information 2] I can use both "svn co" and "git svn clone" to checkout the svn url

Community
  • 1
  • 1
Sheng
  • 1,697
  • 4
  • 19
  • 33

1 Answers1

1

To whoever running into the same problem, my solution is to pass in --no-minimum-url to git svn init before I did git svn fetch

git svn init <svn.url> -s --no-minimize-url
git svn fetch

Turns out since the svn server is not managed by us, some information in svn root is intentionally hidden from us. So if the git svn client tries to read that information from svn root, it would fail. --no-minimize-url will prevent git svn client from going there.

das_weezul
  • 6,082
  • 2
  • 28
  • 33
Sheng
  • 1,697
  • 4
  • 19
  • 33
  • @Sheng: The parameter is called "--no-minimize-url" and not "--no--minimum-url". Could you update your answer? – datentyp Nov 28 '12 at 07:29