Changes between Version 11 and Version 12 of TracGitosisPlugin


Ignore:
Timestamp:
Jul 23, 2015, 2:29:08 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes, tagged as external

Legend:

Unmodified
Added
Removed
Modified
  • TracGitosisPlugin

    v11 v12  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = Gitosis administration plugin =
     3= Gitosis administration plugin
    44
    5 == Description ==
     5== Description
    66
    7 This plugin allows partial gitosis administration from Trac.
     7This plugin allows partial gitosis administration from Trac. Users will be able to add their public SSH key in gitosis in a new settings tab.
    88
    9 Users will be able to add their public SSH key in gitosis (new settings tab).
     9Admins will be able to set the location of the gitosis-admin repository and settings for the git repository associated with Trac (requires GitPlugin).
    1010
    11 Admins will be able to set the location of the gitosis-admin repository and settings for the git repository associated with Trac (requires GitPlugin.)
    12 
    13 == Bugs/Feature Requests ==
     11== Bugs/Feature Requests
    1412
    1513Existing bugs and feature requests for TracGitosisPlugin are
     
    1715
    1816If you have any issues, create a
    19 [http://trac-hacks.org/newticket?component=TracGitosisPlugin&owner=dr4Ke new ticket].
     17[/newticket?component=TracGitosisPlugin new ticket].
    2018
    21 == Download ==
     19[[TicketQuery(component=TracGitosisPlugin&group=type,format=progress)]]
     20
     21== Download
    2222
    2323Download the zipped source from [https://github.com/dr4Ke/TracGitosisPlugin/archive/latest.zip GitHub].
    2424
    25 == Source ==
     25== Source
    2626
    2727You can check out TracGitosisPlugin using {{{git clone git://github.com/dr4Ke/TracGitosisPlugin.git}}}, or [http://github.com/dr4Ke/TracGitosisPlugin browse the source] on !GitHub.
    2828
    29 == Configuration ==
     29== Configuration
    3030
    31 Before this plugin can work, you need a few things :
     31Before this plugin can work, you need a few things:
    3232 - a working git installation on the server running Trac
    3333 - SSH key pair without passphrase for the user running Trac
    3434 - access to a gitosis-admin repository
    3535
    36 === SSH key pair ===
     36=== SSH key pair
     37
    3738Example on a RHEL server using Apache httpd :
    38 {{{
    39 #!sh
     39{{{#!sh
    4040# Create the key pair without passphrase
    4141mkdir /var/www/.ssh
     
    4747}}}
    4848
    49 === Configure access to gitosis-admin ===
     49=== Configure access to gitosis-admin
    5050
    5151Simply add the previously generated public key in the file {{{keydir/trac.pub}}} and add the user {{{trac}}} in the {{{gitosis-admin}}} group members in the {{{gitosis.conf}}} file as for a standard gitosis admin. Then commit and push your changes. That should do it.
    5252
    53 == Configuration into Trac ==
     53== Configuration into Trac
    5454
    5555You have to enable the plugin (and restart Trac) with this parameter in {{{trac.ini}}}:
    56 {{{
    57 #!ini
     56{{{#!ini
    5857[components]
    5958tracgitosis.* = enabled
    6059}}}
    61 Next, in the Admin panel, you'll see Two new pages in a new {{{Trac Gitosis}}} section:
     60
     61Next, in the Admin panel, you'll see two pages in a new {{{Trac Gitosis}}} section:
    6262 - Admin Settings
    6363 - Repository Settings
    6464
    65 In the {{{Admin Settings}}}, you must give gitosis-admin access parameters before you can really use this plugin :
     65In the {{{Admin Settings}}}, you must give gitosis-admin access parameters before you can actually use this plugin:
    6666||Parameter||Default value||Description||
    6767||Admin Repository Name||gitosis-admin||the name of the gitosis administration special repository||
     
    7171Save changes and enjoy the {{{Repository Settings}}} (for admins only) and the {{{gitosis SSH public key}}} in all users preferences.
    7272
    73 == How it works ==
     73== Usage
    7474
    7575When accessing either {{{Repository Settings}}} or {{{gitosis SSH public key}}} for the first time, Trac clones the gitosis-admin repository at the root of the trac project.
    7676
    77 Then, each time these pages are displayed, the repository is pulled in order to read current settings and public keys. When you press {{{Save changes}}}, the repository is pulled again, settings are written into {{{gitosis.conf}}}, public key is written into {{{keydir/<user>.pub}}}, changes are commited and pushed to the main admin repository.
     77Then, each time these pages are displayed, the repository is pulled in order to read current settings and public keys. When you press {{{Save changes}}}, the repository is pulled again, settings are written into {{{gitosis.conf}}}, public key is written into {{{keydir/<user>.pub}}}, changes are committed and pushed to the main admin repository.
    7878
    79 == Warning ==
    80 The gitosis file is overwritten each time setting are saved in Trac using a modified !ConfigParser python class. The [gitosis] section will be written first. All other sections will be written in a sorted way. In each section, the parameters are written the same sorted way.
     79'''Warning'''
     80
     81The gitosis file is overwritten each time setting are saved in Trac using a modified !ConfigParser Python class. The [gitosis] section will be written first. All other sections will be written in a sorted way. In each section, the parameters are written the same sorted way.
    8182
    8283In short, this means:
    8384 - sections and parameters will be moved if they were not sorted in the original file
    84  - all comments will be lost (because I don't know were to write them after section and/or parameters moved)
     85 - all comments will be lost, because I don't know were to write them after section and/or parameters moved
    8586
    86 == Recent Changes ==
     87== Recent Changes
    8788
    8889See [http://github.com/dr4Ke/TracGitosisPlugin/commits/master GitHub history]
    8990
    90 == Author/Contributors ==
     91== Author/Contributors
    9192
    9293'''Author:''' [wiki:dr4Ke] [[BR]]
    93 '''Maintainer:''' [wiki:dr4Ke] [[BR]]
     94'''Maintainer:''' [[Maintainer]] [[BR]]
    9495'''Contributors:'''