24b6a9c620cdf324e7c7fc773df6ae7aab65d41c
Benjamin Renard Initial commit

Benjamin Renard authored 11 years ago

1) AddRepo plugin for ViewGit
2) ==========================
3) 
4) This plugin add an interface to create new repositry directly from
5) ViewGit : A form permit to give
6) 
7) * repository name
8) * repository description
Benjamin Renard Add 'nopassword' parameter

Benjamin Renard authored 9 years ago

9) * a password witch protect this feature (except when nopassword option is set
10)   to True)
Benjamin Renard Initial commit

Benjamin Renard authored 11 years ago

11) 
12) The repository name will be validated : it must contain only letter, number,
13) "_" or "-" caracter.
14) 
15) The repository description is required. This description will be put in the
16) description file of the repository.
17) 
18) The given password will be compare with $conf['addrepo']['password'] value.
19) If password is ommit in the configuration, the creation will be refused.
20) 
Benjamin Renard Add 'nopassword' parameter

Benjamin Renard authored 9 years ago

21) If you want to completely disable password check, you have to set
22) $conf['addrepo']['nopassword'] to True.
23) 
Benjamin Renard Initial commit

Benjamin Renard authored 11 years ago

24) After create a new repository, if you go on the repository page, you will have
25) a message that explain you how to push your first commits. This message could
26) be change by editing template file summary.php. This message is displayed only
27) if the head hash is empty.
28) 
29) Prerequisites
30) -------------
31) 
32) * User witch running apache must have right access to the directory 
33)   witch contains your repositories
34) * You must have dynamic viewgit projects detection
35) 
36) Install
37) -------
38) 
39) * Put addrepo directory in plugins directory
40) * Add this block in inc/localconfig.php :
41) 
42) $conf['addrepo'] = array(
43)         'root_path' => '/full/path/to/your/repos',
44)         'password' => 'secret',
Benjamin Renard Add 'nopassword' parameter

Benjamin Renard authored 9 years ago

45)         'nopassword' => True|False,