# git svn master pointing to commit for older svn tag?

2 messages from 2009-05-06 to 2009-05-10. Participants: skillzero@gmail.com, Eric Wong.
Thread: https://gitlist.dev/t/19209

## skillzero@gmail.com, 2009-05-06 21:59

Subject: git svn master pointing to commit for older svn tag?
Message-ID: <2729632a0905061459v6c257b3ay60e1f454e8f2bb4a@mail.gmail.com>
URL: https://gitlist.dev/e/2729632a0905061459v6c257b3ay60e1f454e8f2bb4a%40mail.gmail.com

```
I'm using git svn to sync to a Subversion repository and it generally
works, but somehow, it seems to have gotten into a state where master
is pointing to the commit for an old svn tag rather than to the svn
trunk so 'git svn rebase' never does anything.

If I look in .git/info/refs, I see that refs/heads/master is pointing
to the commit for a specific tag and I can change to point to
something else, but I'm wondering how it got into this state and if
there's a better way to tell git svn to go back to using the svn trunk
so future rebases work correctly?

```

## Eric Wong, 2009-05-10 01:37

Subject: Re: git svn master pointing to commit for older svn tag?
Message-ID: <20090510013742.GC2000@dcvr.yhbt.net>
URL: https://gitlist.dev/e/20090510013742.GC2000%40dcvr.yhbt.net
In-Reply-To: <2729632a0905061459v6c257b3ay60e1f454e8f2bb4a@mail.gmail.com>

```
skillzero@gmail.com wrote:
> I'm using git svn to sync to a Subversion repository and it generally
> works, but somehow, it seems to have gotten into a state where master
> is pointing to the commit for an old svn tag rather than to the svn
> trunk so 'git svn rebase' never does anything.
> 
> If I look in .git/info/refs, I see that refs/heads/master is pointing
> to the commit for a specific tag and I can change to point to
> something else, but I'm wondering how it got into this state and if
> there's a better way to tell git svn to go back to using the svn trunk
> so future rebases work correctly?

You can use "git rebase refs/remotes/trunk" on any working tree
to reapply your current work against trunk.  "git svn rebase"
just uses "git rebase" internally anyways.

-- 
Eric Wong

```
