Skip to content

Commit b7a7d20

Browse files
author
scott Chacon
committed
everything but the archive and diff functions are now in pure ruby in the camping app
1 parent 779f21b commit b7a7d20

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

camping/gitweb.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
# there is no user auth, so don't run this anywhere that anyone can use it
88
# it's read only, but anyone can remove or add references to your repos
99
#
10+
# everything but the archive and diff functions are now in pure ruby
11+
#
1012
# install dependencies
1113
# sudo gem install camping-omnibus --source http://code.whytheluckystiff.net
1214
#
@@ -125,10 +127,12 @@ def get repo_id, sha
125127
class Blob < R '/blob/(\d+)/(.*?)/(\w+)'
126128
def get repo_id, file, sha
127129
@repo = Repository.find repo_id
128-
logger = Logger.new('/tmp/git.log')
129-
logger.level = Logger::INFO
130-
131-
@git = Git.bare(@repo.path, :log => logger)
130+
131+
#logger = Logger.new('/tmp/git.log')
132+
#logger.level = Logger::INFO
133+
#@git = Git.bare(@repo.path, :log => logger)
134+
135+
@git = Git.bare(@repo.path)
132136
@blob = @git.gblob(sha)
133137
@file = file
134138
render :blob

0 commit comments

Comments
 (0)