[cfe-dev] [LLVMdev] GIT mirroring
Peter Collingbourne
peter at pcc.me.uk
Tue Feb 1 17:19:15 PST 2011
On Wed, Feb 02, 2011 at 09:42:58AM +0900, NAKAMURA Takumi wrote:
> To rebuild, it would be enough to remove
> .git/svn/refs/remotes/git-svn/.rev_map.*
>
> My usual way to resync;
>
> $ git fetch llvm.org (is remote name)
>
> $ git update-ref refs/remotes/git-svn llvm.org/master
>
> $ git svn fetch
> Partial-rebuilding
> .git/svn/refs/remotes/git-svn/.rev_map.91177308-0d34-0410-b5e6-96231b3b80d8
> ...
> Currently at 124651 = 071d3af0de273b1079d79f7f979264f28d567373
> r124653 = cde5a400dbc9655eddf0f383585d3cf67c11c539
> ...
> r124704 = e349d2c61256f11180b7112ab592b4ae700f3dcf
> Done rebuilding
> .git/svn/refs/remotes/git-svn/.rev_map.91177308-0d34-0410-b5e6-96231b3b80d8
I have a small script (attached) in my $PATH so I can just do:
$ git svnmu llvm
--
Peter
-------------- next part --------------
#!/bin/sh
git fetch $1 && git update-ref refs/remotes/git-svn $1/master && git svn fetch
More information about the cfe-dev
mailing list