Skip to content

Commit

Permalink
everything but the archive and diff functions are now in pure ruby in…
Browse files Browse the repository at this point in the history
… the camping app
  • Loading branch information
scott Chacon committed Nov 27, 2007
1 parent 779f21b commit b7a7d20
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions camping/gitweb.rb
Expand Up @@ -7,6 +7,8 @@
# there is no user auth, so don't run this anywhere that anyone can use it
# it's read only, but anyone can remove or add references to your repos
#
# everything but the archive and diff functions are now in pure ruby
#
# install dependencies
# sudo gem install camping-omnibus --source http://code.whytheluckystiff.net
#
Expand Down Expand Up @@ -125,10 +127,12 @@ def get repo_id, sha
class Blob < R '/blob/(\d+)/(.*?)/(\w+)'
def get repo_id, file, sha
@repo = Repository.find repo_id
logger = Logger.new('/tmp/git.log')
logger.level = Logger::INFO

@git = Git.bare(@repo.path, :log => logger)

#logger = Logger.new('/tmp/git.log')
#logger.level = Logger::INFO
#@git = Git.bare(@repo.path, :log => logger)

@git = Git.bare(@repo.path)
@blob = @git.gblob(sha)
@file = file
render :blob
Expand Down

0 comments on commit b7a7d20

Please sign in to comment.