Crit::Helpers::CGI
CGI helper module for git-http-backend integration
This module provides functionality to handle Git HTTP protocol by interfacing with git-http-backend CGI script.
Constants
Set up a dedicated logger for CGI operations
Class methods
Extracts username from HTTP Authorization header
@param env [HTTP::Server::Context] The HTTP context @return [String, Nil] The extracted username or nil if not found
Prepares CGI environment variables for git-http-backend
@param env [HTTP::Server::Context] The HTTP context @param name [String] Repository name @param path_info [String] Path info part of the URL @return [Hash(String, String)] CGI environment variables
Runs git-http-backend CGI script
@param env [HTTP::Server::Context] The HTTP context @param cgi_env [Hash(String, String)] CGI environment variables @return [String] Empty string on success, error message on failure