aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas <skangas@skangas.se>2011-05-26 16:55:36 +0200
committerStefan Kangas <skangas@skangas.se>2011-05-26 16:56:56 +0200
commit8e2eae467beac8d79a142e7c22e2776848cc0a0b (patch)
tree1d55199b1560e20369fbe8a37343b85bbd6eb10e
parent3cd60f1e4ebaaa0fbba07634a008a2bd8d812faa (diff)
Extend gitolite and gitweb documentation
-rw-r--r--fripost-docs.org64
1 files changed, 60 insertions, 4 deletions
diff --git a/fripost-docs.org b/fripost-docs.org
index 5a06a02..701faa2 100644
--- a/fripost-docs.org
+++ b/fripost-docs.org
@@ -772,25 +772,81 @@ TODO: add the necessary configuration files
- sudo apt-get install apache2
-*** Configuring gitweb and gitolite
+*** Configuring gitolite and gitweb
# Note: incomplete steps
-sudo apt-get install gitolite gitweb
+sudo apt-get install gitolite
sudo dpkg-reconfigure gitolite
-# Add the gitweb user to gitolite
+ :: /var/lib/gitolite/.gitolite.rc
-:: /var/lib/gitolite/.gitolite.rc
$REPO_UMASK = 0027; # gets you 'rwxr-x---'
+# Add the repositories/users to gitolite
+# This is mostly self-explanatory, but begin on your local workstation:
+
+git clone gitolite@githost:gitolite-admin
+
+cd gitolite-admin
+
+... make edits
+
+git push
+
+# Push all repositories
+
+cd myrepo
+
+git push --all gitolite@githost:myrepo
+
+git push --tags gitolite@githost:myrepo
+
+# Add the gitweb user to gitolite
+
+sudo apt-get install gitweb
+
sudo usermod -a -G gitolite www-data
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
+# Add repositories to gitweb
+
+sudo ln -s /var/lib/gitolite/repositories/myrepo.git /var/cache/git/myrepo.git
+
+... etc
+
+# Make sure one can checkout the repository via http
+
+[[http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt][Git docs]]
+
+sudo su gitolite
+
+cd /var/lib/gitolite/repositories/myrepo.git
+git update-server-info
+mv hooks/post-update.sample hooks/post-update
+
+ :: /etc/apache2/sites-available/default
+
+ AliasMatch ^/pub(/.*\.git)(/.*)? /var/cache/git$1$2
+
+ :: /usr/share/gitweb/indextext.html
+
+ För att klona ett av dessa träd, installera <a href="http:///">git</a> och kör:
+
+ <blockquote><code>git clone http://git.fripost.org/pub/</code> + projektets sökväg</blockquote>
+
+ <p>
+ För mer information om <a href="http://www.kernel.org/pub/software/scm/git/">git</a>, se en
+ <a href="http://git.or.cz/">överblick</a>, en
+ <a href="http://www.kernel.org/pub/software/scm/git/docs/gittutorial.html">tutorial</a>
+ eller
+ <a href="http://www.kernel.org/pub/software/scm/git/docs">manualsidorna</a>.
+ </p>
+
** Logging
*** Overview
We want to limit how much we log for privacy reasons. At the same time we want