fix git clone urls
authorChristian Weiske <cweiske@cweiske.de>
Sun, 15 Apr 2012 20:25:55 +0000 (22:25 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 15 Apr 2012 20:25:55 +0000 (22:25 +0200)
README.rst
src/phorkie/Repository.php

index f5c7b78..18c0f88 100644 (file)
@@ -66,7 +66,7 @@ Now make the repositories available by symlinking the paste repository
 directory (``$GLOBALS['phorkie']['cfg']['repos']`` setting) into
 ``/var/cache/git``, e.g.::
 
-  $ ln -s /home/user/www/paste/repos /var/cache/git/paste
+  $ ln -s /home/user/www/paste/repos/git /var/cache/git/paste
 
 Edit your ``config.php`` and set the ``$GLOBALS['phorkie']['cfg']['git']['public']``
 setting to ``git://$yourhostname/git/paste/``.
index 0117ec2..1a55af8 100644 (file)
@@ -173,7 +173,7 @@ class Repository
     {
         $var = $public ? 'public' : 'private';
         if (isset($GLOBALS['phorkie']['cfg']['git'][$var])) {
-            return $GLOBALS['phorkie']['cfg']['git'][$var] . $this->id . '/.git';
+            return $GLOBALS['phorkie']['cfg']['git'][$var] . $this->id . '.git';
         }
         return null;
     }