diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-27 08:26:09 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-27 08:26:09 -0800 |
commit | b7a7d204bad7de8696ac800c3d1e608bdc344a38 (patch) | |
tree | d091e6ed3b9df6d8401dc0ea2c17e9608569f12f | |
parent | 779f21b307e7c119a56700fb14f88ba63a2cccc2 (diff) | |
download | third_party-ruby-git-b7a7d204bad7de8696ac800c3d1e608bdc344a38.tar.gz third_party-ruby-git-b7a7d204bad7de8696ac800c3d1e608bdc344a38.tar.xz third_party-ruby-git-b7a7d204bad7de8696ac800c3d1e608bdc344a38.zip |
everything but the archive and diff functions are now in pure ruby in the camping app
-rw-r--r-- | camping/gitweb.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/camping/gitweb.rb b/camping/gitweb.rb index 29a4ab3..1c8b97a 100644 --- a/camping/gitweb.rb +++ b/camping/gitweb.rb @@ -7,6 +7,8 @@ require 'lib/git' # 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 # @@ -125,10 +127,12 @@ module GitWeb::Controllers 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 |