git-shell revision c3a6c336056933aaedbf12520434a95a9ce1ea5c
#!/usr/bin/env ruby
#
# Git shell, invoked from ~/.ssh/authorized_keys
#
unless ENV['SSH_CONNECTION']
puts "Only ssh allowed"
exit 1
end
require File.expand_path('../../lib/init', __FILE__)
require 'git_shell'
key_id = ARGV[0]
command = ENV['SSH_ORIGINAL_COMMAND']
GitShell.new(key_id, command).exec