aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/git_wiki
diff options
context:
space:
mode:
authorroot <root@animus.robocracy.org>2007-02-24 22:18:26 -0800
committerroot <root@animus.robocracy.org>2007-02-24 22:18:26 -0800
commited9e597e32c7a118e47eced3b07974297945e40b (patch)
tree3081a553e47b47d2de0128098a8f2e7968caba93 /bn_django/git_wiki
parentc69b55610e3cceb5cbd48784fb7cc0458d463f3a (diff)
downloadbnewnet-ed9e597e32c7a118e47eced3b07974297945e40b.tar.gz
bnewnet-ed9e597e32c7a118e47eced3b07974297945e40b.zip
changes to make things work on the production server
Diffstat (limited to 'bn_django/git_wiki')
-rw-r--r--bn_django/git_wiki/models.py12
-rw-r--r--bn_django/git_wiki/settings.py10
-rw-r--r--bn_django/git_wiki/templates/git_wiki/base.html6
3 files changed, 14 insertions, 14 deletions
diff --git a/bn_django/git_wiki/models.py b/bn_django/git_wiki/models.py
index 11f00f1..ae9ef79 100644
--- a/bn_django/git_wiki/models.py
+++ b/bn_django/git_wiki/models.py
@@ -150,10 +150,10 @@ def fromslug(reqslug):
import commands
if reqslug == '' or reqslug == '/':
- f = open(GITWIKI_BASE + '/.git/HEAD','r')
+ f = open(GITWIKI_BASE + '/HEAD','r')
head = f.readline().strip().split()[1]
f.close()
- f = open(GITWIKI_BASE + '/.git/'+head,'r')
+ f = open(GITWIKI_BASE + '/'+head,'r')
hash = f.readline().strip()
f.close()
ret = Tree(id=hash)
@@ -198,13 +198,13 @@ def fromslug(reqslug):
def reposcan():
import os
heads = dict()
- for h in os.listdir(GITWIKI_BASE + '/.git/refs/heads/'):
- f = open(GITWIKI_BASE + '/.git/refs/heads/' + h,'r')
+ for h in os.listdir(GITWIKI_BASE + '/refs/heads/'):
+ f = open(GITWIKI_BASE + '/refs/heads/' + h,'r')
heads[h.strip()] = f.readline().strip()
f.close()
tags = dict()
- for t in os.listdir(GITWIKI_BASE + '/.git/refs/tags/'):
- f = open(GITWIKI_BASE + '/.git/refs/tags/' + t,'r')
+ for t in os.listdir(GITWIKI_BASE + '/refs/tags/'):
+ f = open(GITWIKI_BASE + '/refs/tags/' + t,'r')
tags[t.strip()] = f.readline().strip()
f.close()
return (heads, tags)
diff --git a/bn_django/git_wiki/settings.py b/bn_django/git_wiki/settings.py
index ed07f53..882dd30 100644
--- a/bn_django/git_wiki/settings.py
+++ b/bn_django/git_wiki/settings.py
@@ -1,13 +1,13 @@
# full path to directory holding the wiki repository (or sys links to
# the repositories)
-GITWIKI_BASE = '/home/bnewbold/knowledge/'
+GITWIKI_BASE = '/srv/git/knowledge.git'
# leave this blank (NO WHITE SPACE) unless you're using a bare repo
-GITWIKI_NAME = ''
+GITWIKI_NAME = 'knowledge'
# fill path to the git command
-GITCOMMAND = '/usr/local/bin/git'
+GITCOMMAND = '/usr/bin/git'
-GITPREFIX = 'cd ' +str(GITWIKI_BASE) + '; ' + str(GITCOMMAND) + ' --git-dir=' \
- + str(GITWIKI_BASE) + '/' + GITWIKI_NAME + '.git'
+GITPREFIX = 'cd ' +str(GITWIKI_BASE) + '/.. ; ' + str(GITCOMMAND) + ' --git-dir=' \
+ + str(GITWIKI_BASE)
diff --git a/bn_django/git_wiki/templates/git_wiki/base.html b/bn_django/git_wiki/templates/git_wiki/base.html
index eefaa9a..82884c3 100644
--- a/bn_django/git_wiki/templates/git_wiki/base.html
+++ b/bn_django/git_wiki/templates/git_wiki/base.html
@@ -2,9 +2,9 @@
{% block stylesheets %}
{{ block.super }}
-<link rel="STYLESHEET" type="text/css" href="style/git_wiki.css" />
-<link rel="STYLESHEET" type="text/css" href="/style/git_wiki.css" />
-<!--<link rel="STYLESHEET" type="text/css" href="http://static.bryannewbold.com/style/git_wiki.css" />-->
+<!--<link rel="STYLESHEET" type="text/css" href="style/git_wiki.css" />
+<link rel="STYLESHEET" type="text/css" href="/style/git_wiki.css" />-->
+<link rel="STYLESHEET" type="text/css" href="http://static.bryannewbold.com/style/git_wiki.css" />
{% endblock %}