Edgewall Software

Changes between Version 13 and Version 14 of TracTeam/Repositories


Ignore:
Timestamp:
May 15, 2017, 7:04:27 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Use HTTPS and try to improve flow of document.

Legend:

Unmodified
Added
Removed
Modified
  • TracTeam/Repositories

    v13 v14  
    1010
    1111See the list in https://hg.edgewall.org/trac.
    12 
    1312
    1413== Git repositories #git
     
    2928First you need to clone your repository (let's call the local repository `$user` as well):
    3029{{{#!sh
    31 $ git clone http://svn.edgewall.org/git/trac/devs/$user $user
     30$ git clone https://svn.edgewall.org/git/trac/devs/$user $user
    3231$ cd $user
    3332}}}
     
    4544Speaking of which, we need to make it easy to retrieve the changes coming from upstream. For that, we add a remote that we will call `mirror`:
    4645{{{#!sh
    47 $ git remote add mirror http://svn.edgewall.org/git/trac/mirror
     46$ git remote add mirror https://svn.edgewall.org/git/trac/mirror
    4847$ git fetch mirror
    4948}}}
    5049(use that URL directly from e.o, or use one of the github ones)
    5150
    52 Disable pushing to the mirror, just to be safe:
    53 {{{#!sh
    54 $ git remote set-url --push mirror no_push
    55 }}}
    56 
    57 If you'd like to get tags from the mirror, do like this:
    58 {{{#!sh
    59 $ git fetch mirror 'refs/remotes/tags/*:refs/tags/*'
    60 }}}
    61 
    62 We also would like to fetch from this remote instead of the origin for the local  branch `trunk`, so we need to replace `origin` by `mirror`:
     51We would like to fetch from `mirror` instead of the `origin` for the local  branch `trunk`, so we need to replace `origin` by `mirror`:
    6352{{{#!sh
    6453$ git branch --set-upstream-to=mirror/trunk trunk
     
    7059$ git branch 0.12-stable mirror/0.12-stable
    7160Branch 0.12-stable set up to track remote branch 0.12-stable from mirror.
     61}}}
     62
     63Disable pushing to the mirror, just to be safe:
     64{{{#!sh
     65$ git remote set-url --push mirror no_push
     66}}}
     67
     68If you'd like to get tags from the mirror:
     69{{{#!sh
     70$ git fetch mirror 'refs/remotes/tags/*:refs/tags/*'
    7271}}}
    7372
     
    9089}}}
    9190
    92 
    9391Note that you can add the repositories from other developers in as  many remotes as needed, e.g.
    9492{{{#!sh
    95 $ git remote add cboos http://svn.edgewall.org/git/trac/devs/cboos
    96 $ git remote add jomae http://svn.edgewall.org/git/trac/devs/jomae
    97 $ git remote add rjollos http://svn.edgewall.org/git/trac/devs/rjollos
    98 $ git remote add psuter http://svn.edgewall.org/git/trac/devs/psuter
     93$ git remote add cboos https://svn.edgewall.org/git/trac/devs/cboos
     94$ git remote add jomae https://svn.edgewall.org/git/trac/devs/jomae
     95$ git remote add rjollos https://svn.edgewall.org/git/trac/devs/rjollos
     96$ git remote add psuter https://svn.edgewall.org/git/trac/devs/psuter
    9997}}}
    10098This makes it very easy to fetch topic branches from other people and to continue where they left or propose changes.
     
    112110[remote "origin"]
    113111        fetch = +refs/heads/*:refs/remotes/origin/*
    114         url = http://svn.edgewall.org/git/trac/devs/jonas
     112        url = https://svn.edgewall.org/git/trac/devs/jonas
    115113        pushurl = https://jonas@svn.edgewall.org/git/trac/devs/jonas
    116114[branch "trunk"]
     
    118116        merge = refs/heads/trunk
    119117[remote "mirror"]
    120         url = http://svn.edgewall.org/git/trac/mirror
     118        url = https://svn.edgewall.org/git/trac/mirror
    121119        fetch = +refs/heads/*:refs/remotes/mirror/*
    122120[branch "0.12-stable"]
     
    124122        merge = refs/heads/0.12-stable
    125123[remote "cboos"]
    126         url = http://svn.edgewall.org/git/trac/devs/cboos
     124        url = https://svn.edgewall.org/git/trac/devs/cboos
    127125        fetch = +refs/heads/*:refs/remotes/cboos/*
    128126[remote "jomae"]
    129         url = http://svn.edgewall.org/git/trac/devs/jomae
     127        url = https://svn.edgewall.org/git/trac/devs/jomae
    130128        fetch = +refs/heads/*:refs/remotes/jomae/*
    131129[remote "rjollos"]
    132         url = http://svn.edgewall.org/git/trac/devs/rjollos
     130        url = https://svn.edgewall.org/git/trac/devs/rjollos
    133131        fetch = +refs/heads/*:refs/remotes/rjollos/*
    134132[remote "psuter"]
    135         url = http://svn.edgewall.org/git/trac/devs/psuter
     133        url = https://svn.edgewall.org/git/trac/devs/psuter
    136134        fetch = +refs/heads/*:refs/remotes/psuter/*
    137135}}}