{"id":17919625,"url":"https://github.com/asim/git-http-backend","last_synced_at":"2025-07-31T00:41:48.744Z","repository":{"id":7635089,"uuid":"8994965","full_name":"asim/git-http-backend","owner":"asim","description":"Git Smart HTTP in Go","archived":false,"fork":false,"pushed_at":"2024-06-10T13:47:09.000Z","size":32,"stargazers_count":127,"open_issues_count":6,"forks_count":39,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T04:34:59.654Z","etag":null,"topics":["git","git-http-backend","go","grack"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-03-24T23:18:12.000Z","updated_at":"2025-02-11T15:30:23.000Z","dependencies_parsed_at":"2024-06-03T11:24:13.752Z","dependency_job_id":"1976d5df-2885-4ee5-9cdd-3c8156b21308","html_url":"https://github.com/asim/git-http-backend","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/asim/git-http-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fgit-http-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fgit-http-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fgit-http-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fgit-http-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asim","download_url":"https://codeload.github.com/asim/git-http-backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asim%2Fgit-http-backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267967720,"owners_count":24173566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-http-backend","go","grack"],"created_at":"2024-10-28T20:18:24.023Z","updated_at":"2025-07-31T00:41:48.682Z","avatar_url":"https://github.com/asim.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Git HTTP Backend\n\nThis is a Go based implementation of Grack (a Rack application), which aimed \nto replace the builtin git-http-backed CGI handler distributed with C Git. \nGrack was written to allow far more webservers to handle Git smart http \nrequests. The aim of this project is to improve Git smart http performance by \nutilising the power of Go.\n\n## Dependencies\n\n- Git \u003e= 1.7\n\n## Install\n\n```\ngo get github.com/asim/git-http-backend\n```\n\n## Usage\n\nRun the backend pointing to a project root and git bin path\n```\ngit-http-backend --project_root=/tmp --git_bin_path=/usr/bin/git\n```\n\nHelp\n\n```\ngit-http-backend --help\n```\n\nFlags\n\n```\nUsage of ./git-http-backend:\n  -require_auth bool\n        set require auth enable/disable\n  -auth_pass_env_var string\n        set an env var to provide the basic auth pass as\n  -auth_user_env_var string\n        set an env var to provide the basic auth user as\n  -default_env string\n        set the default env\n  -git_bin_path string\n        set git bin path (default \"/usr/bin/git\")\n  -project_root string\n        set project root (default \"/tmp\")\n  -route_prefix string\n        prepend a regex prefix to each git-http-backend route\n  -server_address string\n        set server address (default \":8080\")\n```\n\n## Server\n\nTo embed your own server import and use the package\n\n```go\npackage main\n\nimport (\n        \"log\"\n        \"net/http\"\n\n        \"github.com/asim/git-http-backend/server\"\n)\n\nfunc main() {\n\thttp.HandleFunc(\"/\", server.Handler())\n\n\tif err := http.ListenAndServe(\":8080\", nil); err != nil {\n\t\tlog.Fatal(\"ListenAndServe: \", err)\n\t}\n}\n```\n\n## License\n\n```\n(The MIT License)\n\nCopyright (c) 2013 Asim Aslam \u003casim@aslam.me\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasim%2Fgit-http-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasim%2Fgit-http-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasim%2Fgit-http-backend/lists"}