{"thread":{"id":"19209","subject":"git svn master pointing to commit for older svn tag?","startedAt":"2009-05-06T21:59:46Z","lastAt":"2009-05-10T01:37:42Z","messageCount":2,"participants":["skillzero@gmail.com","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"113135","messageId":"2729632a0905061459v6c257b3ay60e1f454e8f2bb4a@mail.gmail.com","threadId":"19209","inReplyTo":null,"subject":"git svn master pointing to commit for older svn tag?","fromName":"","fromEmail":"skillzero@gmail.com","sentAt":"2009-05-06T21:59:46Z","receivedAt":"2009-05-06T21:59:46Z","isPatch":false,"sender":{"key":"skillzero@gmail.com","avatar":null},"body":"I'm using git svn to sync to a Subversion repository and it generally\nworks, but somehow, it seems to have gotten into a state where master\nis pointing to the commit for an old svn tag rather than to the svn\ntrunk so 'git svn rebase' never does anything.\n\nIf I look in .git/info/refs, I see that refs/heads/master is pointing\nto the commit for a specific tag and I can change to point to\nsomething else, but I'm wondering how it got into this state and if\nthere's a better way to tell git svn to go back to using the svn trunk\nso future rebases work correctly?\n"},{"id":"113439","messageId":"20090510013742.GC2000@dcvr.yhbt.net","threadId":"19209","inReplyTo":"2729632a0905061459v6c257b3ay60e1f454e8f2bb4a@mail.gmail.com","subject":"Re: git svn master pointing to commit for older svn tag?","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-05-10T01:37:42Z","receivedAt":"2009-05-10T01:37:42Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"skillzero@gmail.com wrote:\n> I'm using git svn to sync to a Subversion repository and it generally\n> works, but somehow, it seems to have gotten into a state where master\n> is pointing to the commit for an old svn tag rather than to the svn\n> trunk so 'git svn rebase' never does anything.\n> \n> If I look in .git/info/refs, I see that refs/heads/master is pointing\n> to the commit for a specific tag and I can change to point to\n> something else, but I'm wondering how it got into this state and if\n> there's a better way to tell git svn to go back to using the svn trunk\n> so future rebases work correctly?\n\nYou can use \"git rebase refs/remotes/trunk\" on any working tree\nto reapply your current work against trunk.  \"git svn rebase\"\njust uses \"git rebase\" internally anyways.\n\n-- \nEric Wong\n"}]}