File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 7
7
# there is no user auth, so don't run this anywhere that anyone can use it
8
8
# it's read only, but anyone can remove or add references to your repos
9
9
#
10
+ # everything but the archive and diff functions are now in pure ruby
11
+ #
10
12
# install dependencies
11
13
# sudo gem install camping-omnibus --source http://code.whytheluckystiff.net
12
14
#
@@ -125,10 +127,12 @@ def get repo_id, sha
125
127
class Blob < R '/blob/(\d+)/(.*?)/(\w+)'
126
128
def get repo_id , file , sha
127
129
@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 )
132
136
@blob = @git . gblob ( sha )
133
137
@file = file
134
138
render :blob
You can’t perform that action at this time.
0 commit comments