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

Re: git-svn segmetation fault

From
Wink Saville <wink@saville.com>
Date
Feb 3, 2008, 01:21 UTC
Message-ID
<47A51737.7050905@saville.com>
In-Reply-To
<20080202210348.GA11722@dervierte>
Steven Walter wrote:
Show 16 quoted lines
> On Sat, Feb 02, 2008 at 10:56:40AM -0800, Wink Saville wrote:
>   
>> <I did that but a rebase command resulted in: />
>>
>> wink@ic2d1:$ git svn rebase
>> Unable to determine upstream SVN information from working tree history
>>
>> <I've bee using git-svn for a few days without trouble. Do I need
>> the do another "git svn clone" using the base url rather than
>> pointing to the trunk? />
>>     
>
> You shouldn't have to clone again.  First time removing .git/svn, then
> running "git svn fetch" (which ought to rebuild what was there).  You
> ought to be able to rebase after that.
>   
I've messed something up, I've just re-cloned and all is well.

Actually, a related question which you seem to imply from your answer to the crash. I have the local git repo and also one on a local server which I created as follows:

local$: git svn clone -s https://async-msgcomp.googlecode.com/svn amc local$: ssh srvr srvr$: cd <to local server/path to repo> srvr$: mkdir amc.git srvr$: cd amc.git srvr$: git --bare init --shared srvr$: exit local$: cd amc local$: git remote add origin git:<to local server/path to repo/amc.git> local$: git push --all

So at this point amc/.git/config looks like:
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[svn-remote "svn"]
        url = https://async-msgcomp.googlecode.com/svn
        fetch = trunk:refs/remotes/trunk
        branches = branches/*:refs/remotes/*
        tags = tags/*:refs/remotes/tags/*
[remote "origin"]
        url = git://192.168.0.8/amc.git
        fetch = +refs/heads/*:refs/remotes/origin/*
wink@ic2d1:$

I now have three repositories one local git repo, one git repo on srvr and one svn repo at googlecode.com. I feel really good and backed up to the max:) But assume the svn repo is huge and the initial git svn clone takes a long time.

What steps would be needed to recreate a "local git repo" from the "git repo on srvr" that I could use against the svn repo?

I tried a little test, I cloned my git repo on srvr locally to amc-xx and added the [svn-remote "svn"] section to amc-xx/.git/config and then did a git-svn fetch. From what happened it looks like I just did a git svn clone and didn't save any time.

Also, a follow up can I create an svn repo from a git repo.
Anyway, thanks for the help,
Wink
Previous: Steven WalterNext: Steven Walter
Message 8 of 12 in “git-svn segmetation fault”
  1. Wink SavilleFeb 1, 2008
  2. Wink SavilleFeb 2, 2008
  3. Steven WalterFeb 2, 2008
  4. Wink SavilleFeb 2, 2008
  5. Steven WalterFeb 2, 2008
  6. Wink SavilleFeb 2, 2008
  7. Steven WalterFeb 2, 2008
  8. Wink SavilleFeb 3, 2008
  9. Steven WalterFeb 3, 2008
  10. Wink SavilleFeb 3, 2008
  11. Eric WongFeb 2, 2008
  12. Wink SavilleFeb 2, 2008

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.