Setting up git-svn remote for a cloned git repository

sbatta
sbatta
I have a git repository cloned from a SVN repo using git-svn. Everything works fine here. I am now trying to clone this git repo onto another machine and setup svn remote on it.  1. After adding svn remote to config, I hit 'git svn rebase' and the command hangs on me. Once after requesting password & certificate info, second time no change at prompt. May be first time itself cert info was saved. 2. I retried cloning again and tried a 'git svn fetch' but this is bringing everything from first commit. Practically doing a git svn clone.  What are the correct steps to setup svn remote for an existing git repository and have it working? The source git repo is typically cloned from svn.  Thanks for the help in advance :-).

Last updated

sbatta
sbatta
Figured this one myself. git svn rebase was failing since the SHA hash pointer was missing in the cloned repo. After copying this file over, rebase went fine. Here's the location of the hash file: [name].git/svn/refs/remotes/git-svn  Posting this for somebody who encounters same issue.
Ramiromcol
Ramiromcol
I've got a 'git-svn' working tree. I'd like to clone a "pure" git repo off this, and then use git push/pull to move changes between the git-svn tree and the git tree, while also using 'git svn dcommit/rebase' to move changes between the git-svn tree and the SVN repo it's based on.    This seems to work okay as far as moving things back and forth between the git trees using git methods, but as soon as I interact with the SVN repo in the git-svn tree, things get wonky -- either I get errors when pushing or pulling between the git trees, or I lose commits in the git-svn tree, or other oddness.    Is this type of SVN <-> git-svn <-> git workflow supported at all or should I just quit barking up this tree?
sbatta
sbatta
Ramiromcol;137113I've got a 'git-svn' working tree. I'd like to clone a "pure" git repo off this, and then use git push/pull to move changes between the git-svn tree and the git tree, while also using 'git svn dcommit/rebase' to move changes between the git-svn tree and the SVN repo it's based on.    This seems to work okay as far as moving things back and forth between the git trees using git methods, but as soon as I interact with the SVN repo in the git-svn tree, things get wonky -- either I get errors when pushing or pulling between the git trees, or I lose commits in the git-svn tree, or other oddness.    Is this type of SVN <-> git-svn <-> git workflow supported at all or should I just quit barking up this tree?
   -----    I'm using git-svn with a git server to share git branches between other git-svn/pure git repos without problems.    Here's a good resource - http://www.tfnico.com/presentations/git-and-subversion    Will post more details if the above resource doesn't help.

1-4 of 4

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.