git_shell.rb revision b7f9db49a6db23c307613e01f08cdf302412563c
require 'open3'
@command = command
end
def exec
if @command
if GIT_CMDS.include?(@git_cmd)
else
message = "git-shell: Access denied for git command <#{@command}> by #{log_username}."
end
else
message = "git-shell: Attempt to execute disallowed command <#{@command}> by #{log_username}."
puts 'Not allowed command'
end
else
exit(1)
end
end
end
cmd = "#{@git_cmd} #{repo_full_path}"
end
end
end
end
"user with key #{@key_id}"
end
end