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:
Bruce Dubbs 2021-01-10 20:12:04 +00:00
parent dc905ac23e
commit d186c30ddd

View File

@ -322,18 +322,17 @@ GIT_DAEMON_OPTS=""
<para> <para>
GIT_BASE_DIR=&lt;dirname&gt; GIT_BASE_DIR=&lt;dirname&gt;
</para> </para>
<para>Specify the location of the repository directory <para>Specify the location of the git repositories.
on which the git daemon operates on. Relative pathes Relative paths used when accessing the daemon will
in access to the daemon will translated to be relative translated relative to this directory.
to this directory.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
DFT_REPO_DIR=&lt;dirname&gt; DFT_REPO_DIR=&lt;dirname&gt;
</para> </para>
<para>The directory is added to the white list of allowed <para>This directory is added to the white list of allowed
directories. This variable can hold multible directory directories. This variable can hold multiple directory
names but is usually set equal to <literal>GIT_BASE_DIR</literal>. names but is usually set equal to <literal>GIT_BASE_DIR</literal>.
</para> </para>
</listitem> </listitem>
@ -341,13 +340,14 @@ GIT_DAEMON_OPTS=""
<para> <para>
GIT_DAEMON_OPTS=&lt;options&gt; GIT_DAEMON_OPTS=&lt;options&gt;
</para> </para>
<para>In case you have to pass special options to the <para>
<command>git daemon</command> command, they have to be In case special options to the <command>git daemon</command>
specified in this setting. One example might be to adjust command are needed, they have to be specified in this setting.
the port number where daemon is listening. In this case, One example might be to adjust the port number where daemon is
add <literal>--port=&lt;port number&gt;</literal> to this variable. listening. In this case, add <literal>--port=&lt;port
For more information about which options can be set, take a look number&gt;</literal> to this variable. For more information
at the output of <command>git daemon --help</command>. about which options can be set, take a look at the output of
<command>git daemon --help</command>.
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
@ -360,11 +360,12 @@ GIT_DAEMON_OPTS=""
<screen role="nodump"><userinput>git clone git://gitserver/project1.git</userinput></screen> <screen role="nodump"><userinput>git clone git://gitserver/project1.git</userinput></screen>
<para> <para>
As the basedir is <filename class="directory">/srv/git</filename> by As the base directory is <filename class="directory">/srv/git</filename>
default (or set to a custom value in the config), <application>git</application> by default (or set to a custom value in the configuration),
interprets the incoming path (/project1.git) relative to that base <application>git</application> interprets the incoming path
directory so that the repository in <filename class="directory">/srv/git/project1.git</filename> (/project1.git) relative to that base directory so that the repository
is served. in <filename class="directory">/srv/git/project1.git</filename> is
served.
</para> </para>
</sect3> </sect3>