systems:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

systems:git [2012/09/21 01:29]
dsp created
systems:git [2013/10/28 01:13] (current)
tyrael wiki markup so the double dashes are displayed
Line 7: Line 7:
 ===== Creating a new repository ===== ===== Creating a new repository =====
   - You need access to **git.php.net:​gitolite-admin.git**   - You need access to **git.php.net:​gitolite-admin.git**
-  - Add the repository in //​conf/​gitolite.conf//​+  - Add the repository ​to the long long list of repos in //​conf/​gitlite.conf//​ 
 +  - OR Add the repository itself to //​conf/​gitolite.conf//​
     - Ensure RW+ is set to //@all//     - Ensure RW+ is set to //@all//
     - Ensure R is set to //daemon gitweb//     - Ensure R is set to //daemon gitweb//
     - Ensure //​config.sharedRepository = true//     - Ensure //​config.sharedRepository = true//
-    - **Do not give access to any other user**+    ​- Add a description at the end of the file 
 +    ​- **Do not give access to any other user except daemon and gitweb** 
 +  - Create the repo on github. Use dash instead of slashes e.g. //​pecl/​numbers/​bitset//​ becomes //​pecl-numbers-bitset//​ on github
   - Import the repository using svn2git.   - Import the repository using svn2git.
-    - An author ​map will be made available soon +    - git init reponame 
 +    - cd reponame 
 +    - svn2git %%--verbose%% %%--authors%% /​path/​to/​authors.map http://​svn.php.net/​repository/​pecl/​package 
 +    - The authors.map is in the gitolite-admin.git repo.  ​
     - Push it to the newly created repository.     - Push it to the newly created repository.
 +      - git push %%--all%% https://​git.php.net/​push/​REPONAME
 +      - git push %%--tags%% https://​git.php.net/​push/​REPONAME
     - Make sure all branches are pushed     - Make sure all branches are pushed
   - Add the appropriate //​hooks.mailinglist//​ config variable   - Add the appropriate //​hooks.mailinglist//​ config variable
     - Do that **AFTER** you pushed the initial repository or people will hate you.     - Do that **AFTER** you pushed the initial repository or people will hate you.
   - Rename <​REPO>​ to <​REPO>​.git in the //​global_avail//​ file in SVNROOT.   - Rename <​REPO>​ to <​REPO>​.git in the //​global_avail//​ file in SVNROOT.
 +  - A GitHub repository should be created by an "​owner"​ of the PHP-GitHub project using https://​master.php.net/​manage/​github.php
  
 karma & co is going to be installed automatically. If you have problem call dsp@php.net. karma & co is going to be installed automatically. If you have problem call dsp@php.net.
systems/git.1348183776.txt.gz · Last modified: 2012/09/21 01:29 by dsp