{"id":20332159,"url":"https://github.com/aspyatkin/agit-cookbook","last_synced_at":"2026-05-11T09:54:12.432Z","repository":{"id":73686703,"uuid":"176927402","full_name":"aspyatkin/agit-cookbook","owner":"aspyatkin","description":"A safer replacement for Chef git resource","archived":false,"fork":false,"pushed_at":"2019-04-16T10:09:31.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T12:43:48.713Z","etag":null,"topics":["chef-cookbook","git","ssh-agent-forwarding"],"latest_commit_sha":null,"homepage":"https://supermarket.chef.io/cookbooks/agit","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aspyatkin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2019-03-21T11:02:08.000Z","updated_at":"2019-04-16T10:09:29.000Z","dependencies_parsed_at":"2023-02-24T01:16:00.497Z","dependency_job_id":null,"html_url":"https://github.com/aspyatkin/agit-cookbook","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/aspyatkin/agit-cookbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fagit-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fagit-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fagit-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fagit-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aspyatkin","download_url":"https://codeload.github.com/aspyatkin/agit-cookbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspyatkin%2Fagit-cookbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32889971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":["chef-cookbook","git","ssh-agent-forwarding"],"created_at":"2024-11-14T20:25:16.206Z","updated_at":"2026-05-11T09:54:12.400Z","avatar_url":"https://github.com/aspyatkin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# agit cookbook\n\nA safer replacement for Chef git resource.\n\n## Concept\n\nChef git resource is rather user-unfriendly. It is notoriously difficult to find a combination of `checkout_branch`, `enable_checkout` and `revision` so that all works perfectly.\n\nThere are several major improvements introduced by this cookbook.\n\nFirstly, only one attribute is used to control a repository's `HEAD` (current branch).\n\nSecondly, changes in a local copy of the repository are respected. The current branch will not be changed if the repository's state is \"dirty\". Unlike Chef git resource `:sync` action, uncommited changes will not be reset.\n\nThirdly, SSH agent forwarding is fully supported.\n\n## Usage\n\n```\nagit '/opt/hello' do\n  repository 'git@github.com:acme/hello.git'\n  branch 'develop'\n  user 'vagrant'\n  group 'vagrant'\n  action :update\nend\n```\n\n## Notes\n\nRegarding SSH agent forwarding it is important to include `agit::cleanup` recipe into a node's run list. During Chef client run `agit` alters the permissions of the forwarded SSH agent socket (the value is stored in `SSH_AUTH_SOCK` environment variable). Cleanup recipe restores those permissions.\n\n## License\nMIT @ [Alexander Pyatkin](https://github.com/aspyatkin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspyatkin%2Fagit-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faspyatkin%2Fagit-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspyatkin%2Fagit-cookbook/lists"}