git-shell revision ec61f6f64207b4168960fcd645b1362d86fdecca
#
# Git shell, invoked from ~/.ssh/authorized_keys
#
puts "Only ssh allowed"
exit 1
end
require 'git_shell'
command = ENV['SSH_ORIGINAL_COMMAND']
GitShell.new(key_id, command).exec
<<-ERROR
Could not perform git push for
Key-Id:<#{key_id}> and command:<#{command}>.
We also encountered this error:
<##{error.class}> <#{error.message}>
With this stacktrace:
#{error.backtrace.join('\n')}
ERROR
end
puts <<-ERROR
We encountered a system error while processing your
git-interaction attempt.
The git command was not processed; your data
is safe. Please try again in a few minutes.
Contact an admin if this issue persists.
ERROR
exit 1
end