[LLVMdev] GIT mirroring

Tobias Grosser grosser at fim.uni-passau.de
Mon Mar 21 14:29:43 PDT 2011


On 03/21/2011 04:54 PM, Jakob Stoklund Olesen wrote:
>
> On Mar 21, 2011, at 1:47 PM, Bob Wilson wrote:
>
>> I've been using Jakob's commands below, but it has stopped working for me.  This happened roughly around the time when Anton added the other branches, but I'm not sure if that was the cause or not.  The symptom is that the "git svn rebase -l" command does nothing except say that the master branch is already up to date, and "git svn dcommit" complains that files are out of date.  In both cases, "git svn rebase" (without "-l") solves the problem, but without using the GIT mirror, so it's slow.
>>
>> I've tried re-creating my git repos from scratch but that did not fix the problem.  Any ideas?
>
> The trick with 'git config --add remote.origin.fetch' doesn't work anymore. I tried changing it to refer to the remote's master branch instead, but that has caused strange problems.
>
> I now run 'git update-ref' every time I fetch from the mirror:

You should be able to get rid of this by calling:

git config svn-remote.svn.fetch ':refs/remotes/origin/master'

Now the default svn branch points to refs/remotes/origin/master instead 
of refs/remotes/git-svn and everything should work automatically.
Let me know if there are any problems with this approach.

Tobi



More information about the llvm-dev mailing list