mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
Minor working change to git server page
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24100 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
dc905ac23e
commit
d186c30ddd
@ -322,18 +322,17 @@ GIT_DAEMON_OPTS=""
|
||||
<para>
|
||||
GIT_BASE_DIR=<dirname>
|
||||
</para>
|
||||
<para>Specify the location of the repository directory
|
||||
on which the git daemon operates on. Relative pathes
|
||||
in access to the daemon will translated to be relative
|
||||
to this directory.
|
||||
<para>Specify the location of the git repositories.
|
||||
Relative paths used when accessing the daemon will
|
||||
translated relative to this directory.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
DFT_REPO_DIR=<dirname>
|
||||
</para>
|
||||
<para>The directory is added to the white list of allowed
|
||||
directories. This variable can hold multible directory
|
||||
<para>This directory is added to the white list of allowed
|
||||
directories. This variable can hold multiple directory
|
||||
names but is usually set equal to <literal>GIT_BASE_DIR</literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
@ -341,13 +340,14 @@ GIT_DAEMON_OPTS=""
|
||||
<para>
|
||||
GIT_DAEMON_OPTS=<options>
|
||||
</para>
|
||||
<para>In case you have to pass special options to the
|
||||
<command>git daemon</command> command, they have to be
|
||||
specified in this setting. One example might be to adjust
|
||||
the port number where daemon is listening. In this case,
|
||||
add <literal>--port=<port number></literal> to this variable.
|
||||
For more information about which options can be set, take a look
|
||||
at the output of <command>git daemon --help</command>.
|
||||
<para>
|
||||
In case special options to the <command>git daemon</command>
|
||||
command are needed, they have to be specified in this setting.
|
||||
One example might be to adjust the port number where daemon is
|
||||
listening. In this case, add <literal>--port=<port
|
||||
number></literal> to this variable. For more information
|
||||
about which options can be set, take a look at the output of
|
||||
<command>git daemon --help</command>.
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
@ -360,11 +360,12 @@ GIT_DAEMON_OPTS=""
|
||||
<screen role="nodump"><userinput>git clone git://gitserver/project1.git</userinput></screen>
|
||||
|
||||
<para>
|
||||
As the basedir is <filename class="directory">/srv/git</filename> by
|
||||
default (or set to a custom value in the config), <application>git</application>
|
||||
interprets the incoming path (/project1.git) relative to that base
|
||||
directory so that the repository in <filename class="directory">/srv/git/project1.git</filename>
|
||||
is served.
|
||||
As the base directory is <filename class="directory">/srv/git</filename>
|
||||
by default (or set to a custom value in the configuration),
|
||||
<application>git</application> interprets the incoming path
|
||||
(/project1.git) relative to that base directory so that the repository
|
||||
in <filename class="directory">/srv/git/project1.git</filename> is
|
||||
served.
|
||||
</para>
|
||||
|
||||
</sect3>
|
||||
|
Loading…
Reference in New Issue
Block a user