Commit 6cffa8a5 authored by Dmytro Zaporozhets (DZ)'s avatar Dmytro Zaporozhets (DZ) 🌴
Browse files

gitlabhq grack v1.0.1

parent ba46f3b0
Grack - Ruby/Rack Git Smart-HTTP Server Handler
===============================================
[![Build Status](https://travis-ci.org/gitlabhq/grack.png)](https://travis-ci.org/gitlabhq/grack)
[![Code Climate](https://codeclimate.com/github/gitlabhq/grack.png)](https://codeclimate.com/github/gitlabhq/grack)
This project aims to replace the builtin git-http-backend CGI handler
distributed with C Git with a Rack application. This reason for doing this
is to allow far more webservers to be able to handle Git smart http requests.
......@@ -26,6 +29,7 @@ These web servers include Rack handlers in their distributions:
* Fuzed
* Phusion Passenger (which is mod_rack for Apache and for nginx)
* Unicorn
* Puma
With [Warbler](http://caldersphere.rubyforge.org/warbler/classes/Warbler.html),
and JRuby, we can also generate a WAR file that can be deployed in any Java
......
......@@ -6,12 +6,12 @@ Gem::Specification.new do |gem|
gem.email = ["schacon@gmail.com"]
gem.description = %q{Ruby/Rack Git Smart-HTTP Server Handler}
gem.summary = %q{Ruby/Rack Git Smart-HTTP Server Handler}
gem.homepage = "https://github.com/schacon/grack"
gem.homepage = "https://github.com/gitlabhq/grack"
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
gem.files = `git ls-files`.split("\n")
gem.test_files = `git ls-files -- tests/*`.split("\n")
gem.name = "grack"
gem.name = "gitlab-grack"
gem.require_paths = ["lib"]
gem.version = Grack::VERSION
......
......@@ -66,6 +66,7 @@ module Grack
command = git_command("#{@rpc} --stateless-rpc #{@dir}")
IO.popen(command, File::RDWR) do |pipe|
pipe.write(input)
pipe.close_write
while !pipe.eof?
block = pipe.read(8192) # 8M at a time
@res.write block # steam it to the client
......
module Grack
VERSION = "1.0.0"
VERSION = "1.0.1"
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment