commit | author | age
|
48fe87
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
M |
2 |
<html> |
|
3 |
<head> |
|
4 |
<!-- Begin Header -->
|
|
5 |
<title>Gitblit</title>
|
|
6 |
<meta charset="utf-8">
|
|
7 |
<meta name="ROBOTS" content="INDEX">
|
|
8 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
9 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
10 |
|
|
11 |
<link rel="stylesheet" href="./bootstrap/css/bootstrap.css"> |
|
12 |
<link rel='shortcut icon' type='image/png' href='./gitblt-favicon.png' /> |
|
13 |
<link rel="stylesheet" href="./prettify/prettify.css" /> |
|
14 |
<!-- Google Plus Profile Page -->
|
|
15 |
<link rel="publisher" href="https://plus.google.com/114464678392593421684" />
|
|
16 |
<style type="text/css"> a.gpluspage { margin-top:3px;text-decoration: none; } </style> |
|
17 |
|
|
18 |
<!-- Google Plus One -->
|
|
19 |
<link rel="canonical" href="http://gitblit.com" />
|
|
20 |
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
|
|
21 |
<style type="text/css"> div.gplusone { margin-top:12px; } </style> |
|
22 |
|
|
23 |
<script src="./prettify/prettify.js"></script> |
|
24 |
<script src="./bootstrap/js/jquery.js"></script> |
|
25 |
<script src="./bootstrap/js/bootstrap.min.js"></script> |
|
26 |
</head> |
|
27 |
<body onload='prettyPrint()'> <!-- Navigation Bar -->
|
|
28 |
<div class="navbar navbar-fixed-top">
|
|
29 |
<div class="navbar-inner">
|
|
30 |
<div class="container">
|
|
31 |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
|
32 |
<span class="icon-bar"></span>
|
|
33 |
<span class="icon-bar"></span>
|
|
34 |
<span class="icon-bar"></span>
|
|
35 |
</a>
|
|
36 |
<a class="brand" href="./"><img src="./gitblt_25_white.png" alt="Gitblit"></img></a>
|
|
37 |
<div class="nav-collapse">
|
|
38 |
<ul class="nav">
|
|
39 |
<li class='dropdown'> <!-- Menu --> |
|
40 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>about<b class='caret'></b></a> |
|
41 |
<ul class='dropdown-menu'> |
|
42 |
<li><a href='index.html'>overview</a></li> |
|
43 |
<li><a href='features.html'>features</a></li> |
|
44 |
<li><a href='screenshots.html'>screenshots</a></li> |
|
45 |
</ul></li> <!-- End Menu --> |
|
46 |
<li class='dropdown'> <!-- Menu --> |
|
47 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>documentation<b class='caret'></b></a> |
|
48 |
<ul class='dropdown-menu'> |
|
49 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
50 |
<a tabindex='-1' href='#'>Gitblit GO</a> |
|
51 |
<ul class='dropdown-menu'> |
|
52 |
<li><a href='setup_go.html'>setup GO</a></li> |
|
53 |
<li><a href='upgrade_go.html'>upgrade GO</a></li> |
|
54 |
</ul></li> <!-- End Submenu --> |
|
55 |
<li class='divider'></li> |
|
56 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
57 |
<a tabindex='-1' href='#'>Gitblit WAR</a> |
|
58 |
<ul class='dropdown-menu'> |
|
59 |
<li><a href='setup_war.html'>setup WAR</a></li> |
|
60 |
<li><a href='upgrade_war.html'>upgrade WAR</a></li> |
|
61 |
</ul></li> <!-- End Submenu --> |
|
62 |
<li class='divider'></li> |
|
63 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
64 |
<a tabindex='-1' href='#'>Server Configuration</a> |
|
65 |
<ul class='dropdown-menu'> |
|
66 |
<li><a href='administration.html'>administration</a></li> |
|
67 |
<li><a href='setup_authentication.html'>authentication</a></li> |
|
68 |
<li><a href='setup_hooks.html'>push hooks</a></li> |
|
69 |
<li><a href='setup_lucene.html'>lucene indexing</a></li> |
|
70 |
<li><a href='setup_proxy.html'>reverse proxies</a></li> |
|
71 |
<li><a href='setup_clientmenus.html'>client app menus</a></li> |
|
72 |
<li><a href='setup_bugtraq.html'>bugtraq</a></li> |
|
73 |
<li><a href='setup_mirrors.html'>mirrors</a></li> |
|
74 |
<li><a href='setup_scaling.html'>scaling</a></li> |
|
75 |
<li class='divider'></li> |
|
76 |
<li><a href='setup_viewer.html'>Gitblit as a viewer</a></li> |
|
77 |
</ul></li> <!-- End Submenu --> |
|
78 |
<li class='divider'></li> |
|
79 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
80 |
<a tabindex='-1' href='#'>Client Usage</a> |
|
81 |
<ul class='dropdown-menu'> |
|
82 |
<li><a href='setup_transport_http.html'>using HTTP/HTTPS</a></li> |
|
83 |
<li><a href='setup_transport_ssh.html'>using SSH</a></li> |
|
84 |
<li><a href='eclipse_plugin.html'>using the Eclipse plugin</a></li> |
|
85 |
</ul></li> <!-- End Submenu --> |
|
86 |
<li class='divider'></li> |
|
87 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
88 |
<a tabindex='-1' href='#'>Tickets</a> |
|
89 |
<ul class='dropdown-menu'> |
|
90 |
<li><a href='tickets_overview.html'>overview</a></li> |
|
91 |
<li><a href='tickets_using.html'>using</a></li> |
|
92 |
<li><a href='tickets_barnum.html'>barnum</a></li> |
|
93 |
<li><a href='tickets_setup.html'>setup</a></li> |
|
94 |
<li><a href='tickets_replication.html'>replication & advanced administration</a></li> |
|
95 |
</ul></li> <!-- End Submenu --> |
|
96 |
<li class='divider'></li> |
|
97 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
98 |
<a tabindex='-1' href='#'>Plugins</a> |
|
99 |
<ul class='dropdown-menu'> |
|
100 |
<li><a href='plugins_overview.html'>overview</a></li> |
|
101 |
<li><a href='plugins_extensions.html'>extension points</a></li> |
|
102 |
</ul></li> <!-- End Submenu --> |
|
103 |
<li class='divider'></li> |
|
104 |
<li><a href='federation.html'>federation</a></li> |
|
105 |
<li class='divider'></li> |
|
106 |
<li><a href='properties.html'>settings</a></li> |
|
107 |
<li><a href='faq.html'>faq</a></li> |
|
108 |
<li class='divider'></li> |
|
109 |
<li><a href='design.html'>design</a></li> |
|
110 |
<li><a href='rpc.html'>rpc</a></li> |
|
111 |
</ul></li> <!-- End Menu --> |
|
112 |
<li class='dropdown'> <!-- Menu --> |
|
113 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>releases<b class='caret'></b></a> |
|
114 |
<ul class='dropdown-menu'> |
|
115 |
<li><a href='releasenotes.html'>release notes</a></li> |
|
116 |
<li><a href='releases.html'>release history</a></li> |
|
117 |
<li class='divider'></li> |
|
118 |
<li><a href='roadmap.html'>roadmap</a></li> |
|
119 |
</ul></li> <!-- End Menu --> |
|
120 |
<li class='dropdown'> <!-- Menu --> |
|
121 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>downloads<b class='caret'></b></a> |
|
122 |
<ul class='dropdown-menu'> |
584328
|
123 |
<li><a href='http://dl.bintray.com/gitblit/releases/gitblit-1.6.2.zip'>Gitblit GO (Windows)</a></li> |
M |
124 |
<li><a href='http://dl.bintray.com/gitblit/releases/gitblit-1.6.2.tar.gz'>Gitblit GO (Linux/OSX)</a></li> |
|
125 |
<li><a href='http://dl.bintray.com/gitblit/releases/gitblit-1.6.2.war'>Gitblit WAR</a></li> |
48fe87
|
126 |
<li class='divider'></li> |
M |
127 |
<li><a href='https://registry.hub.docker.com/u/jmoger/gitblit/'>Gitblit GO (Docker)</a></li> |
|
128 |
<li class='divider'></li> |
|
129 |
<li><a href='http://plugins.gitblit.com'>Plugins Registry</a></li> |
|
130 |
<li class='divider'></li> |
584328
|
131 |
<li><a href='http://dl.bintray.com/gitblit/releases/manager-1.6.2.zip'>Gitblit Manager</a></li> |
M |
132 |
<li><a href='http://dl.bintray.com/gitblit/releases/fedclient-1.6.2.zip'>Federation Client</a></li> |
48fe87
|
133 |
<li class='divider'></li> |
584328
|
134 |
<li><a href='http://dl.bintray.com/gitblit/releases/gbapi-1.6.2.zip'>API Library</a></li> |
48fe87
|
135 |
<li class='divider'></li> |
M |
136 |
<li><a href='https://bintray.com/gitblit/releases/gitblit'>Bintray (1.4.0+)</a></li> |
|
137 |
<li><a href='https://code.google.com/p/gitblit/downloads/list?can=1'>GoogleCode (pre-1.4.0)</a></li> |
|
138 |
<li class='divider'></li> |
|
139 |
<li><a href='http://gitblit.github.io/gitblit-maven'>Maven Repository</a></li> |
|
140 |
</ul></li> <!-- End Menu --> |
|
141 |
<li class='dropdown'> <!-- Menu --> |
|
142 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>links<b class='caret'></b></a> |
|
143 |
<ul class='dropdown-menu'> |
|
144 |
<li><a href='https://dev.gitblit.com'>dev.gitblit.com (self-hosted)</a></li> |
|
145 |
<li class='divider'></li> |
|
146 |
<li><a href='http://plugins.gitblit.com'>Plugins Registry</a></li> |
|
147 |
<li class='divider'></li> |
|
148 |
<li><a href='https://github.com/gitblit/gitblit'>Github</a></li> |
|
149 |
<li><a href='http://code.google.com/p/gitblit/issues/list'>Issues</a></li> |
|
150 |
<li><a href='http://groups.google.com/group/gitblit'>Discussion</a></li> |
|
151 |
<li><a href='https://plus.google.com/114464678392593421684'>Google+</a></li> |
|
152 |
<li><a href='https://twitter.com/gitblit'>Twitter</a></li> |
|
153 |
<li><a href='http://www.ohloh.net/p/gitblit'>Ohloh</a></li> |
584328
|
154 |
<li class='divider'></li> |
M |
155 |
<li><a href='https://vimeo.com/86164723'>Gitblit Tickets screencast</a></li> |
|
156 |
<li><a href='https://asciinema.org/a/9342'>Gitblit SSH and Plugin Management asciicast</a></li> |
|
157 |
<li><a href='http://episodes.gitminutes.com/2014/05/gitminutes-29-james-moger-on-gitblit.html'>GitMinutes #29: James Moger on Gitblit</a></li> |
48fe87
|
158 |
<li class='divider'></li> |
M |
159 |
<li><a href='https://plus.google.com/+JamesMoger'>+JamesMoger</a></li> |
|
160 |
<li><a href='https://twitter.com/JamesMoger'>@JamesMoger</a></li> |
|
161 |
</ul></li> <!-- End Menu --> |
|
162 |
<li class='divider-vertical'></li> |
|
163 |
<li><a href='https://plus.google.com/114464678392593421684?prsrc=3' class='gpluspage'><img src='https://ssl.gstatic.com/images/icons/gplus-16.png' width='16' height='16 style='order: 0;'/></a></li><li><div class='gplusone'><g:plusone size='small' href='http://gitblit.com'></g:plusone></div></li>
|
|
164 |
</ul>
|
|
165 |
</div><!--/.nav-collapse -->
|
|
166 |
</div>
|
|
167 |
</div>
|
|
168 |
</div><!-- end Navigation Bar --> |
|
169 |
<div class='container'> |
|
170 |
<!-- Begin Markdown --> |
|
171 |
<h2 class="section" id='H1'><a href="#H1" class="sectionlink"><i class="icon-share-alt"> </i></a>Troubleshooting</h2> |
|
172 |
<h3 class="section" id='H2'><a href="#H2" class="sectionlink"><i class="icon-share-alt"> </i></a>push failed for branch (n/a (unpacker error))</h3><p>This is a bug in JGit (<a href='http://code.google.com/p/gitblit/issues/detail?id=408'>issue 408</a>). TLDR: Newer git clients are optimized to send less data on the wire. JGit expects complete data to be sent, but there are scenarios where native git can optimize-out sending objects. By default, JGit requires everything sent be complete and referenceable.</p><p>If you experience this, the workaround is to temporarily disable the reachable check for the receive pack, push, and then re-enable the setting.</p> |
|
173 |
<pre><code>git.checkReferencedObjectsAreReachable = false |
|
174 |
</code></pre> |
|
175 |
<h3 class="section" id='H3'><a href="#H3" class="sectionlink"><i class="icon-share-alt"> </i></a>Eclipse/Egit/JGit complains that it "can't open upload pack"?</h3><p>There are a few ways this can occur:</p> |
|
176 |
<ol> |
|
177 |
<li>Are you running Java 7?<br />Java 7 introduced SNI support for SSL connections and it is enabled by default.<br /><a href="http://docs.oracle.com/javase/7/docs/technotes/guides/security/enhancements-7.html">Java 7 Security Enhancements</a><br />To disable SNI alerts, add this line to your eclipse.ini file and restart Eclipse.<br /><pre>-Djsse.enableSNIExtension=false</pre></li> |
|
178 |
<li>You are using https with a self-signed certificate and you <strong>did not</strong> configure <em>http.sslVerify=false</em> |
|
179 |
<ol> |
|
180 |
<li>Window->Preferences->Team->Git->Configuration</li> |
|
181 |
<li>Click the <em>New Entry</em> button</li> |
|
182 |
<li> |
|
183 |
<pre>Key = <em>http.sslVerify</em> |
|
184 |
Value = <em>false</em></pre></li> |
|
185 |
</ol></li> |
|
186 |
<li>Gitblit GO's default self-signed certificate is bound to <em>localhost</em> and you are trying to clone/push from a client based on an old version of JGit with a known flaw.</li> |
|
187 |
<li>The repository is clone-restricted and you don't have access.</li> |
|
188 |
<li>The repository is clone-restricted and your password changed.</li> |
|
189 |
<li>A regression in Gitblit. :(</li> |
|
190 |
</ol> |
|
191 |
<h3 class="section" id='H4'><a href="#H4" class="sectionlink"><i class="icon-share-alt"> </i></a>I can not push using git:// protocol on Windows using native Git</h3><p>This is a long-standing, known bug in the native Git for Windows implementation.</p><p>Please see <a href="https://groups.google.com/d/topic/msysgit/at8D7J-h7mw/discussion">this thread</a> for details.</p> |
|
192 |
<h3 class="section" id='H5'><a href="#H5" class="sectionlink"><i class="icon-share-alt"> </i></a>Why can't I access Gitblit GO from another machine?</h3> |
|
193 |
<ol> |
|
194 |
<li>Please check <em>server.httpBindInterface</em> and <em>server.httpsBindInterface</em> in <code>gitblit.properties</code>, you may be only be serving on <em>localhost</em>.</li> |
|
195 |
<li>Please see the above answer about "**can't open upload pack**".</li> |
|
196 |
<li>Ensure that any firewall you may have running on the Gitblit server either has an exception for your specified ports or for the running process.</li> |
|
197 |
</ol> |
|
198 |
<h3 class="section" id='H6'><a href="#H6" class="sectionlink"><i class="icon-share-alt"> </i></a>How do I run Gitblit GO on port 80 or 443 in Linux?</h3><p>Linux requires root permissions to serve on ports < 1024.<br/><br/>Run the server as <em>root</em> (security concern) or change the ports you are serving to 8080 (http) and/or 8443 (https). </p> |
|
199 |
<h3 class="section" id='H7'><a href="#H7" class="sectionlink"><i class="icon-share-alt"> </i></a>Gitblit does not list my repositories?!</h3> |
|
200 |
<ol> |
|
201 |
<li>Confirm that the value <em>git.repositoriesFolder</em> in <code>gitblit.properties</code> actually points to your repositories folder.</li> |
|
202 |
<li>Confirm that the Gitblit process has full read-write-execute permissions to your <em>git.repositoriesFolder</em>.</li> |
|
203 |
</ol> |
|
204 |
<h3 class="section" id='H8'><a href="#H8" class="sectionlink"><i class="icon-share-alt"> </i></a>Gitblit won't open my grouped repository (/group/myrepo.git) or browse my log/branch/tag/ref?!</h3><p>This is likely an url encoding/decoding problem with forward slashes:</p><p><strong>bad</strong></p> |
|
205 |
<pre><code>http://192.168.1.2/log/myrepo.git/refs/heads/master |
|
206 |
</code></pre><p><strong>good</strong></p> |
|
207 |
<pre><code>http://192.168.1.2/log/myrepo.git/refs%2Fheads%2Fmaster |
|
208 |
</code></pre><p><strong>NOTE:</strong><br/>You can not trust the url in the address bar of your browser since your browser may decode it for presentation. When in doubt, <em>View Source</em> of the generated html to confirm the <em>href</em>.</p><p>There are two possible workarounds for this issue. In <code>gitblit.properties</code> or <code>web.xml</code>:</p> |
|
209 |
<ol> |
|
210 |
<li>try setting <em>web.mountParameters</em> to <em>false</em>.<br/>This changes the url scheme from mounted (*/commit/myrepo.git/abcdef*) to parameterized (*/commit/?r=myrepo.git&h=abcdef*).</li> |
|
211 |
<li>try changing <em>web.forwardSlashCharacter</em> to an asterisk or a <strong>!</strong></li> |
|
212 |
</ol> |
|
213 |
<h3 class="section" id='H9'><a href="#H9" class="sectionlink"><i class="icon-share-alt"> </i></a>Running Gitblit behind mod_proxy or some other proxy layer</h3><p>You must ensure that the proxy does not decode and then re-encode request urls with interpretation of forward-slashes (*%2F*). If your proxy layer does re-encode embedded forward-slashes then you may not be able to browse grouped repositories or logs, branches, and tags <strong>unless</strong> you set <em>web.mountParameters=false</em>.</p><p>If you are using Apache mod_proxy you may have luck with specifying <a href="http://httpd.apache.org/docs/2.2/mod/core.html#allowencodedslashes">AllowEncodedSlashes NoDecode</a>.</p> |
|
214 |
<h3 class="section" id='H10'><a href="#H10" class="sectionlink"><i class="icon-share-alt"> </i></a>Running Gitblit on Tomcat</h3><p>Tomcat takes the extra precaution of <a href="http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.10">disallowing embedded slashes by default</a>. This breaks Gitblit urls.<br/>You have a few options on how to handle this scenario:</p> |
|
215 |
<ol> |
|
216 |
<li><a href="http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.10">Tweak Tomcat</a><br/>Add <em>-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true</em> to <em>CATALINA_OPTS</em> or to your JVM launch parameters</li> |
|
217 |
<li><em>web.mountParameters = false</em> and use non-pretty, parameterized urls</li> |
|
218 |
<li><em>web.forwardSlashCharacter = !</em> which tells Gitblit to use <strong>!</strong> instead of <strong>/</strong></li> |
|
219 |
</ol> |
|
220 |
<h4 class="section" id='H11'><a href="#H11" class="sectionlink"><i class="icon-share-alt"> </i></a>UTF-8 Filenames</h4><p>Tomcat also dislikes urls with non-ASCII characters. If your repositories have non-ASCII filenames you will have to modify your connector properties to allow UTF-8 encoded urls. </p><p><a href="http://wiki.apache.org/tomcat/FAQ/CharacterEncoding">Tomcat Character Encoding</a><br/><a href="http://tomcat.apache.org/tomcat-6.0-doc/config/http.html">Tomcat Connector Properties</a></p> |
|
221 |
<h2 class="section" id='H12'><a href="#H12" class="sectionlink"><i class="icon-share-alt"> </i></a>General Interest Questions</h2> |
|
222 |
<h3 class="section" id='H13'><a href="#H13" class="sectionlink"><i class="icon-share-alt"> </i></a>Gitblit? What kind of name is that?</h3><p>It's a phonetic play on <a href="http://en.wikipedia.org/wiki/Bit_blit" title="Wikipedia Bitblt">bitblt</a> which is an image processing operation meaning <em>bit-block transfer</em>.</p> |
|
223 |
<h3 class="section" id='H14'><a href="#H14" class="sectionlink"><i class="icon-share-alt"> </i></a>Why use Gitblit?</h3><p>It's a small tool that allows you to easily manage shared repositories and doesn't require alot of setup or git kung-foo.</p> |
|
224 |
<h3 class="section" id='H15'><a href="#H15" class="sectionlink"><i class="icon-share-alt"> </i></a>Who is the target user for Gitblit?</h3><p>Small workgroups that require centralized repositories.</p><p>Gitblit is not meant to be a social coding resource like <a href="http://github.com">Github</a> or <a href="http://bitbucket.com">Bitbucket</a> with 100s or 1000s of users. Gitblit is designed to fulfill the same function as your centralized Subversion or CVS server.</p> |
|
225 |
<h3 class="section" id='H16'><a href="#H16" class="sectionlink"><i class="icon-share-alt"> </i></a>Do I need real Git?</h3><p>No (mostly). Gitblit is based on <a href="http://eclipse.org/jgit" title="Eclipse JGit Site">JGit</a> which is a pure Java implementation of the <a href="http://git-scm.com" title="Official Git Site">Git version control system</a>.<br/>Everything you need for Gitblit (except Java) is bundled in the distribution file.</p> |
|
226 |
<h4 class="section" id='H17'><a href="#H17" class="sectionlink"><i class="icon-share-alt"> </i></a>mostly</h4><p>Gitblit has experimental support for Garbage Collection using JGit. I have not used it enough to feel comfortable removing the EXPERIMENTAL label. It may work really well, or it may not. One thing you might consider having native git for is periodic garbage collection - when Gitblit is offline.</p> |
|
227 |
<h3 class="section" id='H18'><a href="#H18" class="sectionlink"><i class="icon-share-alt"> </i></a>Can I run Gitblit in conjunction with my existing Git tooling?</h3><p>Yes.</p> |
|
228 |
<h3 class="section" id='H19'><a href="#H19" class="sectionlink"><i class="icon-share-alt"> </i></a>Do I need a JDK or can I use a JRE?</h3><p>Gitblit will run just fine with a JRE.</p> |
|
229 |
<h3 class="section" id='H20'><a href="#H20" class="sectionlink"><i class="icon-share-alt"> </i></a>Does Gitblit use a database to store its data?</h3><p>No. Gitblit stores its repository configuration information within the <code>.git/config</code> file and its user information in <code>users.conf</code> or whatever filename is configured in <code>gitblit.properties</code>.</p> |
|
230 |
<h3 class="section" id='H21'><a href="#H21" class="sectionlink"><i class="icon-share-alt"> </i></a>Can I manually edit users.conf, gitblit.properties, or .git/config?</h3><p>Yes. You can manually manipulate all of them and (most) changes will be immediately available to Gitblit.<br/>Exceptions to this are noted in <code>gitblit.properties</code>.</p><p><strong>NOTE:</strong><br/>Care must be taken to preserve the relationship between user roles and repository names.<br/>Please see the <em>User Roles</em> section of the <a href="/setup.html">setup</a> page for details.</p> |
|
231 |
<h3 class="section" id='H22'><a href="#H22" class="sectionlink"><i class="icon-share-alt"> </i></a>Can I restrict access to branches or paths within a repository?</h3><p>No, not yet. Access restrictions apply to the repository as a whole.</p><p>Gitblit's simple authentication and authorization mechanism can be used to facilitate one or more of the <a href="http://progit.org/book/ch5-1.html">workflows outlined here</a>.</p><p>Should you require more fine-grained access controls you might consider writing a Groovy <em>prereceive</em> script to block updating branch refs based on some permissions file. I would be interested in a generic, re-usable script to include with Gitblit, should someone want to implement it.</p><p>Alternatively, you could use <a href="https://github.com/sitaramc/gitolite">gitolite</a> and SSH for your repository access.</p> |
|
232 |
<h3 class="section" id='H23'><a href="#H23" class="sectionlink"><i class="icon-share-alt"> </i></a>Can I authenticate users against XYZ?</h3><p>Yes. The user service is pluggable. You may write your own complete user service by implementing the <em>com.gitblit.IUserService</em> interface. Or you may subclass <em>com.gitblit.GitblitUserService</em> and override just the authentication. Set the fully qualified classname as the <em>realm.userService</em> property.</p> |
|
233 |
<h3 class="section" id='H24'><a href="#H24" class="sectionlink"><i class="icon-share-alt"> </i></a>What types of Search does Gitblit support?</h3><p>As of 0.9.0, Gitblit supports Lucene-based searching.</p><p>If Lucene indexing is disabled, Gitblit falls back to brute-force commit-traversal search. Commit-traversal search supports case-insensitive searching of <em>commit message</em> (default), <em>author</em>, and <em>committer</em>.</p><p>To search by <em>author</em> or <em>committer</em> use the following syntax in the search box:</p> |
|
234 |
<pre><code>author: james |
|
235 |
committer: james |
|
236 |
</code></pre><p>Alternatively, you could enable the search type dropdown list in your <code>gitblit.properties</code> file.</p> |
|
237 |
<h3 class="section" id='H25'><a href="#H25" class="sectionlink"><i class="icon-share-alt"> </i></a>Why did you call the setting federation.N.frequency instead of federation.N.period?!</h3><p>Yes, yes I know that you are really specifying the period, but Frequency sounds better to me. :)</p> |
|
238 |
<h3 class="section" id='H26'><a href="#H26" class="sectionlink"><i class="icon-share-alt"> </i></a>Can Gitblit be translated?</h3><p>Yes. Most messages are localized to a standard Java properties file. |
|
239 |
<!-- End Markdown --> |
584328
|
240 |
<div ><ul class="pager"><li class="previous"><a href="properties.html">← settings</a></li> </ul></div><footer class="footer"><p class="pull-right">generated 2014-10-28</p>
|
48fe87
|
241 |
<p>The content of this page is licensed under the <a href="http://creativecommons.org/licenses/by/3.0">Creative Commons Attribution 3.0 License</a>.</p> |
M |
242 |
</footer> |
|
243 |
</div> |
|
244 |
<!-- Google Analytics -->
|
|
245 |
<script type="text/javascript">
|
|
246 |
var _gaq = _gaq || [];
|
|
247 |
_gaq.push(['_setAccount', 'UA-24377072-1']);
|
|
248 |
_gaq.push(['_trackPageview']);
|
|
249 |
|
|
250 |
(function() {
|
|
251 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
252 |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
253 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
254 |
})();
|
|
255 |
</script> |
|
256 |
|
|
257 |
</body> |
|
258 |
</html> |