Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 1 | Gerrit2 - Gitweb Integration |
| 2 | ============================ |
| 3 | |
| 4 | Gerrit2 can generate hyperlinks to gitweb, allowing users to jump |
| 5 | from Gerrit content to the same information, but shown by gitweb. |
| 6 | |
Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 7 | To enable the gitweb integration, set gitweb.url with the URL of |
| 8 | your gitweb CGI. |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 9 | |
Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame] | 10 | The CGI's `$projectroot` should be the same directory as |
| 11 | gerrit.basePath, or a fairly current replica. If a replica is |
| 12 | being used, ensure it uses a full mirror, so the `refs/changes/*` |
| 13 | namespace is available. |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 14 | |
| 15 | ==== |
Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 16 | git config --file=$site_path/gerrit.config gitweb.url http://example.com/gitweb.cgi |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 17 | ==== |
| 18 | |
Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 19 | After updating `'$site_path'/gerrit.config`, the Gerrit server must |
| 20 | be restarted and clients must reload the host page to see the change. |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 21 | |
| 22 | Access Control |
| 23 | -------------- |
| 24 | |
| 25 | Gitweb access controls can be implemented using standard web server |
| 26 | access controls. This isn't typically integrated with Gerrit's own |
| 27 | access controls. Caution must be taken to ensure the controls are |
| 28 | consistent if access needs to be restricted. |
| 29 | |
| 30 | Caching Gitweb |
| 31 | -------------- |
| 32 | |
| 33 | If your repository set is large and you are expecting a lot |
| 34 | of users, you may want to look at the caching forks used by |
| 35 | high-traffic sites like kernel.org or repo.or.cz. |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 36 | |
Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 37 | See Also |
| 38 | -------- |
| 39 | |
| 40 | * link:config-gerrit.html#section_gitweb[Section gitweb] |
| 41 | |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 42 | GERRIT |
| 43 | ------ |
| 44 | Part of link:index.html[Gerrit Code Review] |