Author: thomas
Date: Tue Jan 12 00:44:00 2021
New Revision: 24110

Log:
Add a note to hide absolte paths to projects

Modified:
   trunk/BOOK/general/prog/gitserver.xml

Modified: trunk/BOOK/general/prog/gitserver.xml
==============================================================================
--- trunk/BOOK/general/prog/gitserver.xml       Tue Jan 12 00:14:23 2021        
(r24109)
+++ trunk/BOOK/general/prog/gitserver.xml       Tue Jan 12 00:44:00 2021        
(r24110)
@@ -217,7 +217,8 @@
           actions on the repository and the changes users are commiting can be
           distiguished as the local user name (see
           <filename>~/.gitconfig</filename>) is recorded in the
-          changesets.</para>
+          changesets.
+        </para>
       </note>
 
       <para>
@@ -228,6 +229,21 @@
         for public read-only access.
       </para>
 
+      <para>
+        In the URL used to clone the project, the absolute path (here 
+        <filename>/srv/git/project1.git</filename>) has to be specified
+        as the repository is not in git's home directory but in
+        <filename class="directory">/srv/git</filename>. To get rid of the
+        need to expose the structure of the server installation, a symlink
+        can be added in git's home directory for each project like this:
+      </para>
+<screen role="nodump"><userinput>ln -svf /srv/git/project1.git 
/home/git/</userinput></screen>
+
+      <para>
+        Now, the repository can be cloned using
+      </para>
+<screen role="nodump"><userinput>git clone 
git@gitserver:project1.git</userinput></screen>
+
     </sect3>
 
     <sect3 id="gitserver-init">
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to