{"thread":{"id":"8472","subject":"git-svn \"cannot lock ref\" error during fetch","startedAt":"2007-06-06T17:17:49Z","lastAt":"2007-06-13T23:07:02Z","messageCount":6,"participants":["James Peach","Eric Wong","Lars Hjemli"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"44171","messageId":"50C9688F-9C62-43AC-A84D-D84561671BAC@mac.com","threadId":"8472","inReplyTo":null,"subject":"git-svn \"cannot lock ref\" error during fetch","fromName":"James Peach","fromEmail":"jamespeach@mac.com","sentAt":"2007-06-06T17:17:49Z","receivedAt":"2007-06-06T17:17:49Z","isPatch":false,"sender":{"key":"jamespeach@mac.com","avatar":null},"body":"Hi all,\n\nI'm new to git, and I'm experimenting with using git-svn to interact  \nwith a large SVN repository with lots of branches.\n\nI initially did an init like this:\n\ngit-svn init -t tags -b branches -T trunk svn+ssh://server/svn/project\n\nThen I did a git-svn fetch, which started pulling all the branches.  \nAfter a while, however, it hit a branch that it couldn't pull:\n\nFound branch parent: (tags/project-92~9)  \n767f1f1601a4deae459c99ea6c1d1b9ba8f57a65\nFollowing parent with do_update\n...\nSuccessfully followed parent\nfatal: refs/remotes/tags/project-92~9: cannot lock the ref\nupdate-ref -m r13726 refs/remotes/tags/project-92~9  \n950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128\n\nSome amount of searching failed to turn up any hints on what this  \nerror means or how I can work around it. I'd appreciate any advice ...\n\nJames\n"},{"id":"44232","messageId":"20070607063158.GA2809@muzzle","threadId":"8472","inReplyTo":"50C9688F-9C62-43AC-A84D-D84561671BAC@mac.com","subject":"Re: git-svn \"cannot lock ref\" error during fetch","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-06-07T06:31:58Z","receivedAt":"2007-06-07T06:31:58Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"James Peach <jamespeach@mac.com> wrote:\n> Hi all,\n> \n> I'm new to git, and I'm experimenting with using git-svn to interact  \n> with a large SVN repository with lots of branches.\n> \n> I initially did an init like this:\n> \n> git-svn init -t tags -b branches -T trunk svn+ssh://server/svn/project\n> \n> Then I did a git-svn fetch, which started pulling all the branches.  \n> After a while, however, it hit a branch that it couldn't pull:\n> \n> Found branch parent: (tags/project-92~9)  \n> 767f1f1601a4deae459c99ea6c1d1b9ba8f57a65\n> Following parent with do_update\n> ...\n> Successfully followed parent\n> fatal: refs/remotes/tags/project-92~9: cannot lock the ref\n> update-ref -m r13726 refs/remotes/tags/project-92~9  \n> 950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128\n> \n> Some amount of searching failed to turn up any hints on what this  \n> error means or how I can work around it. I'd appreciate any advice ...\n\nIs there a tag actually named \"project-92~9\"?  If so, it's\nan invalid branch name for git.  I started working on a way\naround it by mapping new names to it, but haven't gotten around to\nfinishing it....\n\n-- \nEric Wong\n"},{"id":"44235","messageId":"8c5c35580706062354g5b19e4b8x43d211f634a8583b@mail.gmail.com","threadId":"8472","inReplyTo":"20070607063158.GA2809@muzzle","subject":"Re: git-svn \"cannot lock ref\" error during fetch","fromName":"Lars Hjemli","fromEmail":"hjemli@gmail.com","sentAt":"2007-06-07T06:54:00Z","receivedAt":"2007-06-07T06:54:00Z","isPatch":false,"sender":{"key":"hjemli@gmail.com","avatar":null},"body":"On 6/7/07, Eric Wong <normalperson@yhbt.net> wrote:\n> James Peach <jamespeach@mac.com> wrote:\n> > update-ref -m r13726 refs/remotes/tags/project-92~9\n> > 950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128\n> >\n> > Some amount of searching failed to turn up any hints on what this\n> > error means or how I can work around it. I'd appreciate any advice ...\n>\n> Is there a tag actually named \"project-92~9\"?  If so, it's\n> an invalid branch name for git.  I started working on a way\n> around it by mapping new names to it, but haven't gotten around to\n> finishing it....\n>\n\nfwiw: a similar error occurs when a svn tag-/branchname contains\nspaces. The culprit seems to be $self->refname in\n\n\t\tcommand_noisy('update-ref', '-m', \"r$rev\",\n\t\t              $self->refname, $commit);\n\nin rev_db_set()\n\n--\nlarsh\n"},{"id":"44249","messageId":"6C4E89FC-CE40-4A76-A297-E0AB7A1F2F75@mac.com","threadId":"8472","inReplyTo":"20070607063158.GA2809@muzzle","subject":"Re: git-svn \"cannot lock ref\" error during fetch","fromName":"James Peach","fromEmail":"jamespeach@mac.com","sentAt":"2007-06-07T15:37:29Z","receivedAt":"2007-06-07T15:37:29Z","isPatch":false,"sender":{"key":"jamespeach@mac.com","avatar":null},"body":"On Jun 6, 2007, at 11:31 PM, Eric Wong wrote:\n\n> James Peach <jamespeach@mac.com> wrote:\n>> Hi all,\n>>\n>> I'm new to git, and I'm experimenting with using git-svn to interact\n>> with a large SVN repository with lots of branches.\n>>\n>> I initially did an init like this:\n>>\n>> git-svn init -t tags -b branches -T trunk svn+ssh://server/svn/ \n>> project\n>>\n>> Then I did a git-svn fetch, which started pulling all the branches.\n>> After a while, however, it hit a branch that it couldn't pull:\n>>\n>> Found branch parent: (tags/project-92~9)\n>> 767f1f1601a4deae459c99ea6c1d1b9ba8f57a65\n>> Following parent with do_update\n>> ...\n>> Successfully followed parent\n>> fatal: refs/remotes/tags/project-92~9: cannot lock the ref\n>> update-ref -m r13726 refs/remotes/tags/project-92~9\n>> 950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128\n>>\n>> Some amount of searching failed to turn up any hints on what this\n>> error means or how I can work around it. I'd appreciate any  \n>> advice ...\n>\n> Is there a tag actually named \"project-92~9\"?\n\nunfortunately, there's more than one tag with this naming convention :(\n\n>  If so, it's\n> an invalid branch name for git.  I started working on a way\n> around it by mapping new names to it, but haven't gotten around to\n> finishing it....\n\nAha! I don't really need 90% of the tags - is there a way I can tell  \nthe \"git-svn fetch\" not to bother with particular tags?\n"},{"id":"44484","messageId":"20070609200650.GD32225@muzzle","threadId":"8472","inReplyTo":"6C4E89FC-CE40-4A76-A297-E0AB7A1F2F75@mac.com","subject":"Re: git-svn \"cannot lock ref\" error during fetch","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-06-09T20:06:50Z","receivedAt":"2007-06-09T20:06:50Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"James Peach <jamespeach@mac.com> wrote:\n> On Jun 6, 2007, at 11:31 PM, Eric Wong wrote:\n> \n> >James Peach <jamespeach@mac.com> wrote:\n> >>Hi all,\n> >>\n> >>I'm new to git, and I'm experimenting with using git-svn to interact\n> >>with a large SVN repository with lots of branches.\n> >>\n> >>I initially did an init like this:\n> >>\n> >>git-svn init -t tags -b branches -T trunk svn+ssh://server/svn/ \n> >>project\n> >>\n> >>Then I did a git-svn fetch, which started pulling all the branches.\n> >>After a while, however, it hit a branch that it couldn't pull:\n> >>\n> >>Found branch parent: (tags/project-92~9)\n> >>767f1f1601a4deae459c99ea6c1d1b9ba8f57a65\n> >>Following parent with do_update\n> >>...\n> >>Successfully followed parent\n> >>fatal: refs/remotes/tags/project-92~9: cannot lock the ref\n> >>update-ref -m r13726 refs/remotes/tags/project-92~9\n> >>950638ff72acc278156a0d55baafbabb43f2b772: command returned error: 128\n> >>\n> >>Some amount of searching failed to turn up any hints on what this\n> >>error means or how I can work around it. I'd appreciate any  \n> >>advice ...\n> >\n> >Is there a tag actually named \"project-92~9\"?\n> \n> unfortunately, there's more than one tag with this naming convention :(\n> \n> > If so, it's\n> >an invalid branch name for git.  I started working on a way\n> >around it by mapping new names to it, but haven't gotten around to\n> >finishing it....\n> \n> Aha! I don't really need 90% of the tags - is there a way I can tell  \n> the \"git-svn fetch\" not to bother with particular tags?\n\nYou can manually add fetch = foo:bar lines in the [svn-remote \"svn\"]\nsection of your .git/config file.  See the one for trunk.  Then\nremove the tags= wildcard config line.\n\n-- \nEric Wong\n"},{"id":"45015","messageId":"3AF13F38-11FE-429A-890C-36352A703D18@mac.com","threadId":"8472","inReplyTo":"20070609200650.GD32225@muzzle","subject":"Re: git-svn \"cannot lock ref\" error during fetch","fromName":"James Peach","fromEmail":"jamespeach@mac.com","sentAt":"2007-06-13T23:07:02Z","receivedAt":"2007-06-13T23:07:02Z","isPatch":false,"sender":{"key":"jamespeach@mac.com","avatar":null},"body":"On Jun 9, 2007, at 1:06 PM, Eric Wong wrote:\n\n> James Peach <jamespeach@mac.com> wrote:\n>> On Jun 6, 2007, at 11:31 PM, Eric Wong wrote:\n>>\n>>> James Peach <jamespeach@mac.com> wrote:\n>>>> Hi all,\n>>>>\n>>>> I'm new to git, and I'm experimenting with using git-svn to  \n>>>> interact\n>>>> with a large SVN repository with lots of branches.\n>>>>\n>>>> I initially did an init like this:\n>>>>\n>>>> git-svn init -t tags -b branches -T trunk svn+ssh://server/svn/\n>>>> project\n>>>>\n>>>> Then I did a git-svn fetch, which started pulling all the branches.\n>>>> After a while, however, it hit a branch that it couldn't pull:\n>>>>\n>>>> Found branch parent: (tags/project-92~9)\n>>>> 767f1f1601a4deae459c99ea6c1d1b9ba8f57a65\n>>>> Following parent with do_update\n>>>> ...\n>>>> Successfully followed parent\n>>>> fatal: refs/remotes/tags/project-92~9: cannot lock the ref\n>>>> update-ref -m r13726 refs/remotes/tags/project-92~9\n>>>> 950638ff72acc278156a0d55baafbabb43f2b772: command returned error:  \n>>>> 128\n>>>>\n>>>> Some amount of searching failed to turn up any hints on what this\n>>>> error means or how I can work around it. I'd appreciate any\n>>>> advice ...\n>>>\n>>> Is there a tag actually named \"project-92~9\"?\n>>\n>> unfortunately, there's more than one tag with this naming  \n>> convention :(\n>>\n>>> If so, it's\n>>> an invalid branch name for git.  I started working on a way\n>>> around it by mapping new names to it, but haven't gotten around to\n>>> finishing it....\n>>\n>> Aha! I don't really need 90% of the tags - is there a way I can tell\n>> the \"git-svn fetch\" not to bother with particular tags?\n>\n> You can manually add fetch = foo:bar lines in the [svn-remote \"svn\"]\n> section of your .git/config file.  See the one for trunk.  Then\n> remove the tags= wildcard config line.\n\nthat worked really well, thanks a lot!\n"}]}