threads / discuss / 12954

git svn rebase does not follow new svn tags and branches

Subject: git svn rebase does not follow new svn tags and branches

## tl;dr

2 messages between Apr 1, 2008 and Apr 1, 2008.

replies: 1people: 2as markdown or json

Bob Cotton· Apr 1, 2008, 20:51 UTC · lore

I've been using git-svn for several weeks. After replaying svn using git-svn clone and git-svn fetch, all branches and tags were replicated in the git repo.

Now, after a workflow that includes git-svn rebase, but no git-svn fetch(s), the new svn tags and branches are not being replicated.

I've read the code, and tried rebase --follow-parent. 
Thoughts?
- Bob
Björn Steinbrink· Apr 1, 2008, 21:05 UTC · re: Bob Cotton · lore

Re: git svn rebase does not follow new svn tags and branches

On 2008.04.01 14:51:47 -0600, Bob Cotton wrote:
Show 7 quoted lines
> 
> I've been using git-svn for several weeks. After replaying svn using
> git-svn clone and git-svn fetch, all branches and tags were replicated
> in the git repo.
> 
> Now, after a workflow that includes git-svn rebase, but no git-svn
> fetch(s), the new svn tags and branches are not being replicated.

git svn rebase only fetches the revisions that are required to do the rebase, which speeds the process up quite a bit. Imagine you're working on branch "foo" and trunk is quite active. If git svn rebase would always fetch all the new revisions for trunk as well (which you might not need right now), that could become quite annoying.

If you want all remote branches/tags (incl. trunk) to be updated, use git svn fetch.

Björn

← back to recent threads