git_shell.rb revision 14f706218eebe247895e08b6b2bad34d66baa4b6
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