| 35 | }}} |
| 36 | |
| 37 | == Git repository setup using pygit-svn-mirror == |
| 38 | |
| 39 | [https://github.com/mloskot/pygit-svn-mirror pygit-svn-mirror] is Python port of Ruby tool [https://github.com/alloy/git-svn-mirror/ git-svn-mirror]. It allows to create and maintain mirror of SVN repository through Git bare repository: |
| 40 | |
| 41 | Creating mirror of Subversion repository of PROJ.4 project at GitHub involves the following commands: |
| 42 | |
| 43 | {{{ |
| 44 | $ mkdir /path/to/proj4/mirror |
| 45 | $ cd /path/to/proj4/mirror |
| 46 | $ git-svn-mirror.py init --from=https://svn.osgeo.org/metacrs/proj/ --to=git@github.com:<USRNAME>/proj.4.git |
| 47 | }}} |
| 48 | |
| 49 | Then, update (synchronise) the mirror from its workbench directory: |
| 50 | |
| 51 | {{{ |
| 52 | cd /path/to/proj4/mirror |
| 53 | git-svn-mirror.py update |
| 54 | }}} |
| 55 | |
| 56 | or from any folder but with workbench location pointed explicitly: |
| 57 | |
| 58 | {{{ |
| 59 | git-svn-mirror.py update -w /path/to/proj4/mirror |