summaryrefslogtreecommitdiff
path: root/bin/gitlab-shell
blob: 0c3b65409b9f17b565ee5479da62832bac16f56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby

unless ENV['SSH_CONNECTION']
  puts "Only ssh allowed"
  exit
end
#
# GitLab shell, invoked from ~/.ssh/authorized_keys
#
ROOT_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "..")
require File.join(ROOT_PATH, 'lib', 'gitlab_shell')
GitlabShell.new.exec

exit