[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Repositories
From: |
Markus Hitter |
Subject: |
Re: Repositories |
Date: |
Sat, 21 Dec 2013 01:36:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Am 21.12.2013 00:48, schrieb Gregory Casamento:
> The repositories on GitHub were one way mirrors but I had code in my
> scripts that would migrate changes made on the for side back to svn.
> The only person who has direct access to that repo was me so it was
> experimental.
>
> If anyone knows of a set if scripts which can maintain such a mirror
> I would be interested. For the gnustep mirror I had to write my own.
Uhm ... stitching a few bits I've done together:
Preparing it:
git svn clone http://svn.gna.org/svn/gnustep/trunk gnustep
cd gnustep
git remote rename origin gna # to prevent accidents
git remote add github <URL of Github repo>
Do regularly:
git pull gna && git push -f github
The first line of this is for trunk/master only. For branches I'm
currently not sure how git-svn translates them.
Regarding bringing changes on the Git side back to SVN: I think this can
be done manually, only, because there's always a (pretty likely) chance
of a conflict. Even successfully auto-merged commits mess sometimes up,
e.g. if two people apply the same change in slightly different places.
Of course it's no problem to apply a Git commit as patch to a SVN repo.
How about emailing them?
git fetch github
git checkout github/master
git format-patch --keep-subject master
mail ... 00*
rm 00*
git checkout master
git pull gna && git push -f github # as above
Markus
--
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. (FH) Markus Hitter
http://www.reprap-diy.com/
http://www.jump-ing.de/
- Re: Opinion polls UIKit and Website..., (continued)
- Message not available
- Re: Opinion polls UIKit and Website..., Doc O'Leary, 2013/12/20
- Re: Opinion polls UIKit and Website..., Markus Hitter, 2013/12/20
- Re: Repositories, Dr. H. Nikolaus Schaller, 2013/12/20
- Re: Repositories, Markus Hitter, 2013/12/20
- Re: Repositories, Gregory Casamento, 2013/12/20
- Re: Repositories, Gregory Casamento, 2013/12/20
- Re: Repositories,
Markus Hitter <=
- Re: Repositories, Gregory Casamento, 2013/12/20
- Re: Opinion polls UIKit and Website..., David Chisnall, 2013/12/21
- Re: Repos, Dr. H. Nikolaus Schaller, 2013/12/21
- Re: Repos, David Chisnall, 2013/12/21
- Re: Repos, Dr. H. Nikolaus Schaller, 2013/12/21
- Re: Repos, Ivan Vučica, 2013/12/21
- Re: Opinion polls UIKit and Website..., Markus Hitter, 2013/12/21
- Re: Opinion polls UIKit and Website..., Ivan Vučica, 2013/12/21
- Re: Opinion polls UIKit and Website..., Derek Fawcus, 2013/12/21
- Re: Opinion polls UIKit and Website..., Riccardo Canalicchio, 2013/12/21