{"thread":{"id":"22591","subject":"git-svn: Cannot lock the ref 'refs/remotes/tags/autotag_for_.'.","startedAt":"2010-02-09T21:39:29Z","lastAt":"2010-02-12T14:41:20Z","messageCount":4,"participants":["Tzafrir Cohen","Tay Ray Chuan"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"134078","messageId":"20100209213929.GL3599@xorcom.com","threadId":"22591","inReplyTo":null,"subject":"git-svn: Cannot lock the ref 'refs/remotes/tags/autotag_for_.'.","fromName":"Tzafrir Cohen","fromEmail":"tzafrir.cohen@xorcom.com","sentAt":"2010-02-09T21:39:29Z","receivedAt":"2010-02-09T21:39:29Z","isPatch":false,"sender":{"key":"tzafrir.cohen@xorcom.com","avatar":null},"body":"Hi\n\nI'm using git-svn for watching over SVN repositories in\nsvn.asterisk.org . The largest one there is\nhttp://svn.asterisk.org/svn/asterisk .\n\nThis worked fine up until recently. I was using Debian Stable with Git\n1.5.6 .\n\nRecently I upgraded my system to Debian Testing with Git 1.6 (I\ncurrently have 1.6.6.1-1). Today I tried to update the repository (git\nsvn rebase --fetch-all) and got the following error:\n\n  fatal: Cannot lock the ref 'refs/remotes/tags/autotag_for_.'.\n\nIIRC it followed an automatic garbage-collection in the repository.\n\nI decided to re-clone the SVN repository (I was planning on doing that\nfor quite some time, with a proper AUTHORS file this time. But it's a\nrepo of some 200,000 revisions and takes a few days to clone)\n\nI eventually got the same error.\n\nThe specific revision that triggered it:\n\n  http://svnview.digium.com/svn/asterisk?view=revision&revision=47394\n\nShould git-svn mangle SVN tag names to be legal git ref names? Or just\npanic before it makes the git repo invalid?\n\nIs there a way for me to skip some tags? I can avoid that specific tag.\n\nPlease CC your replies to me as I don't actively follow this list.\n\n-- \n               Tzafrir Cohen\nicq#16849755              jabber:tzafrir.cohen@xorcom.com\n+972-50-7952406           mailto:tzafrir.cohen@xorcom.com\nhttp://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir\n"},{"id":"134154","messageId":"20100210170757.GZ3599@xorcom.com","threadId":"22591","inReplyTo":"20100209213929.GL3599@xorcom.com","subject":"Re: git-svn: Cannot lock the ref 'refs/remotes/tags/autotag_for_.'.","fromName":"Tzafrir Cohen","fromEmail":"tzafrir.cohen@xorcom.com","sentAt":"2010-02-10T17:07:57Z","receivedAt":"2010-02-10T17:07:57Z","isPatch":false,"sender":{"key":"tzafrir.cohen@xorcom.com","avatar":null},"body":"Small update,\n\nOn Tue, Feb 09, 2010 at 11:39:29PM +0200, Tzafrir Cohen wrote:\n> Hi\n> \n> I'm using git-svn for watching over SVN repositories in\n> svn.asterisk.org . The largest one there is\n> http://svn.asterisk.org/svn/asterisk .\n> \n> This worked fine up until recently. I was using Debian Stable with Git\n> 1.5.6 .\n> \n> Recently I upgraded my system to Debian Testing with Git 1.6 (I\n> currently have 1.6.6.1-1). Today I tried to update the repository (git\n> svn rebase --fetch-all) and got the following error:\n> \n>   fatal: Cannot lock the ref 'refs/remotes/tags/autotag_for_.'.\n> \n> IIRC it followed an automatic garbage-collection in the repository.\n> \n> I decided to re-clone the SVN repository (I was planning on doing that\n> for quite some time, with a proper AUTHORS file this time. But it's a\n> repo of some 200,000 revisions and takes a few days to clone)\n> \n> I eventually got the same error.\n> \n> The specific revision that triggered it:\n> \n>   http://svnview.digium.com/svn/asterisk?view=revision&revision=47394\n> \n> Should git-svn mangle SVN tag names to be legal git ref names? Or just\n> panic before it makes the git repo invalid?\n> \n> Is there a way for me to skip some tags? I can avoid that specific tag.\n\nHere's one that did not work:\n\n$ git svn clone -s --ignore-paths='^/tags/autotag_for_.$' http://svn.asterisk.org/svn/asterisk\n\nI again stress that git-svn manages to fetch a faulty repository.\nAnother sub-question is: how do I remove that faulty reference git-svn\nadded?\n\n> \n> Please CC your replies to me as I don't actively follow this list.\n\n-- \n               Tzafrir Cohen\nicq#16849755              jabber:tzafrir.cohen@xorcom.com\n+972-50-7952406           mailto:tzafrir.cohen@xorcom.com\nhttp://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir\n"},{"id":"134210","messageId":"be6fef0d1002110036g2b13616bud0aa7c1a0cbcdb1e@mail.gmail.com","threadId":"22591","inReplyTo":"20100209213929.GL3599@xorcom.com","subject":"Re: git-svn: Cannot lock the ref 'refs/remotes/tags/autotag_for_.'.","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-02-11T08:36:51Z","receivedAt":"2010-02-11T08:36:51Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Wed, Feb 10, 2010 at 5:39 AM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:\n> Is there a way for me to skip some tags? I can avoid that specific tag.\n\nhave you tried --ignore-paths?\n\n-- \nCheers,\nRay Chuan\n"},{"id":"134346","messageId":"20100212144119.GS3599@xorcom.com","threadId":"22591","inReplyTo":"be6fef0d1002110036g2b13616bud0aa7c1a0cbcdb1e@mail.gmail.com","subject":"Re: git-svn: Cannot lock the ref 'refs/remotes/tags/autotag_for_.'.","fromName":"Tzafrir Cohen","fromEmail":"tzafrir.cohen@xorcom.com","sentAt":"2010-02-12T14:41:20Z","receivedAt":"2010-02-12T14:41:20Z","isPatch":false,"sender":{"key":"tzafrir.cohen@xorcom.com","avatar":null},"body":"On Thu, Feb 11, 2010 at 04:36:51PM +0800, Tay Ray Chuan wrote:\n> Hi,\n> \n> On Wed, Feb 10, 2010 at 5:39 AM, Tzafrir Cohen <tzafrir.cohen@xorcom.com> wrote:\n> > Is there a way for me to skip some tags? I can avoid that specific tag.\n> \n> have you tried --ignore-paths?\n\nSorry for the late reply. I don't follow this list (please CC me\nreplies).\n\nYes, I tried. See my other response in this thread. No luck so far. I\nguess the next thing to try would be to ignore all of those autotags\n(even though they are somewhat useful).\n\n-- \n               Tzafrir Cohen\nicq#16849755              jabber:tzafrir.cohen@xorcom.com\n+972-50-7952406           mailto:tzafrir.cohen@xorcom.com\nhttp://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir\n"}]}