public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
Changed gitorious so ssh read only works - needed for private projects
dysinger (author)
Mon Apr 07 11:19:51 -0700 2008
commit  54baf7c6be0a43ecaacd47ee9efea445ee10abf8
tree    f8bf9e146a71d905e1df776fcf0b9d7d0303f1f0
parent  25177c88703dcc6146d0d67afc937e8240c3c4be
...
47
48
49
50
51
52
53
54
 
 
 
 
55
56
57
...
47
48
49
 
 
 
 
 
50
51
52
53
54
55
56
0
@@ -47,11 +47,10 @@ begin
0
 
0
   # The meat of it all; do the permission check
0
   # replace process with git-shell if everything is fine
0
- if client.assure_user_can_write!
0
- args = client.to_git_shell_argument
0
- $stderr.puts "git-shell -c #{args.inspect}" if $DEBUG
0
- exec("git-shell", "-c", args)
0
- end
0
+ args = client.to_git_shell_argument
0
+ args.include?('git-receive-pack') && client.assure_user_can_write!
0
+ $stderr.puts "git-shell -c #{args.inspect}" if $DEBUG
0
+ exec("git-shell", "-c", args)
0
   
0
   unless $?.success?
0
     $stderr.puts "Failed to execute git command"

Comments

    No one has commented yet.